Image Overview: sdk
On this page
Status | stable |
OCI Reference | cgr.dev/chainguard/sdk |
Variants/Tags | latest |
Development image for melange and apko.
Get It!
The image is available on cgr.dev
:
docker pull cgr.dev/chainguard/sdk:latest
Usage
With melange
Clone down your development fork/branch:
git clone https://github.com/chainguard-dev/melange.git
cd melange
Run the image, mounting the repo workspace (--privileged
flag required):
docker run --privileged --rm -it -v "${PWD}:${PWD}" -w "${PWD}" cgr.dev/chainguard/sdk
Upon entering the image, you should see the following welcome message:
Welcome to the development environment!
[sdk] ❯
Inside the environment, test out local changes to the melange codebase by running the following:
make melange install
Then run melange commands as normal:
melange keygen
melange build \
--arch x86_64,arm64 \
--empty-workspace \
--repository-append packages \
--signing-key melange.rsa \
examples/gnu-hello.yaml
With apko
Clone down your development fork/branch:
git clone https://github.com/chainguard-dev/apko.git
cd apko
Run the image, mounting the repo workspace:
docker run --rm -it -v "${PWD}:${PWD}" -w "${PWD}" cgr.dev/chainguard/sdk
Upon entering the image, you should see the following welcome message:
Welcome to the development environment!
[sdk] ❯
Inside the environment, test out local changes to the apko codebase by running the following:
make apko install
Then run apko commands as normal:
apko build --debug \
examples/alpine-base.yaml \
alpine-base:latest output.tar