These steps were executed on an Ubuntu 22.04 host Linux machine and MacOSX.
- Make sure you have Docker installed on your machine
- Download the
cgr.dev/chainguard/melange
andcgr.dev/chainguard/apko
images withdocker pull
- Generate melange signing keys
- Build the
melange.yaml
package - Build the
apko.yaml
container image - Load the image with
docker load
- Run the image with
docker run --rm <image-name>
docker pull cgr.dev/chainguard/melange
docker pull cgr.dev/chainguard/apko
docker run --rm -v "${PWD}":/work cgr.dev/chainguard/melange keygen
docker run --privileged --rm -v "${PWD}":/work -- \
cgr.dev/chainguard/melange build melange.yaml \
--arch x86_64 \
--signing-key melange.rsa --keyring-append melange.rsa.pub
docker run --rm -v ${PWD}:/work cgr.dev/chainguard/apko build --debug apko.yaml hello-wolfi:latest hello-wolfi.tar -k melange.rsa.pub
docker load < hello-wolfi.tar
docker run --rm -p 8080:8080 hello-wolfi
In another shell:
curl http://localhost:8080