Demo for the Hello Wolfi Webinar.
These steps were executed on an Ubuntu 22.04 host Linux machine.
- 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-php.yaml
package - Build the
melange-composer.yaml
package - Build the
melange-app.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-php.yaml --arch x86_64 --signing-key melange.rsa --keyring-append melange.rsa.pub
docker run --privileged --rm -v ${PWD}:/work cgr.dev/chainguard/melange build melange-composer.yaml --arch x86_64 --signing-key melange.rsa --keyring-append melange.rsa.pub
docker run --privileged --rm -v ${PWD}:/work cgr.dev/chainguard/melange build melange-app.yaml --arch x86_64 --signing-key melange.rsa --keyring-append melange.rsa.pub
docker run --rm -v ${PWD}:/work cgr.dev/chainguard/apko build -C /work apko.yaml hello-wolfi:latest hello-wolfi.tar -k melange.rsa.pub
docker load < hello-wolfi.tar
docker run --rm hello-wolfi:latest-amd64