All checks were successful
Publish / Build and publish (push) Successful in 4m45s
35 lines
927 B
Markdown
35 lines
927 B
Markdown
# Kreeger's devcontainer
|
|
|
|
A devcontainer build that I use as the base for all my dev work.
|
|
|
|
## Building locally
|
|
|
|
Make sure you have the prerequisites installed. For me this meant BuildX and
|
|
BuildKit for Docker.
|
|
|
|
```bash
|
|
$ brew install docker-buildx
|
|
$ brew install buildkit
|
|
$ VERSION=$(curl https://api.github.com/repos/docker/buildx/releases/latest -s | jq .name -r)
|
|
$ ARCH=arm64
|
|
$ curl -LO https://github.com/docker/buildx/releases/download/${VERSION}/buildx-${VERSION}.darwin-${ARCH}
|
|
$ mkdir -p ~/.docker/cli-plugins
|
|
$ mv buildx-${VERSION}.darwin-${ARCH} ~/.docker/cli-plugins/docker-buildx
|
|
$ chmod +x ~/.docker/cli-plugins/docker-buildx
|
|
$ docker buildx version
|
|
```
|
|
|
|
Login to Gitea.
|
|
|
|
```bash
|
|
$ docker login git.kree.gr
|
|
```
|
|
|
|
And then build the thing.
|
|
|
|
```bash
|
|
$ DOCKER_BUILDKIT=1 devcontainer build --workspace-folder . \
|
|
--push true --image-name \
|
|
git.kree.gr/kreeger/devcontainer:${$(git rev-parse HEAD):-8}
|
|
```
|