This commit is contained in:
Stephan Schnabel 2025-06-20 10:17:46 +02:00
parent 4e79d98c78
commit d099e8395c
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
6 changed files with 226 additions and 60 deletions

View file

@ -15,12 +15,16 @@
# Build image with local docker daemon.
@build:
docker build . --tag=kokuwaio/dockerd:dev --load
docker build . --target=dockerd --tag=kokuwaio/dockerd:dev
docker build . --target=cli --tag=kokuwaio/docker-cli:dev
docker build . --target=cli-git --tag=kokuwaio/docker-cli:dev-git
docker build . --target=cli-az --tag=kokuwaio/docker-cli:dev-az
docker build . --target=cli-az-git --tag=kokuwaio/docker-cli:dev-az-git
# Inspect image with docker.
@inspect: build
docker image inspect kokuwaio/dockerd:dev
@inspect IMAGE="dockerd:dev": build
docker image inspect kokuwaio/{{IMAGE}}
# Inspect image layers with `dive`.
@dive: build
docker run --rm -it --volume=/var/run/docker.sock:/var/run/docker.sock:ro wagoodman/dive:latest kokuwaio/dockerd:dev
@dive IMAGE="dockerd:dev": build
dive kokuwaio/{{IMAGE}}