Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #38 from developer-guy/feature/update-readme
Browse files Browse the repository at this point in the history
use wolfi-dev/sdk
  • Loading branch information
erikaheidi authored May 26, 2023
2 parents 4e65365 + 2348141 commit 3180ee7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ rm -rf ./packages/

Create a temporary melange keypair:
```
docker run --rm -v "${PWD}":/work cgr.dev/chainguard/melange keygen
docker run --rm -v "${PWD}":/work --entrypoint=melange --workdir=/work ghcr.io/wolfi-dev/sdk keygen
```

Build an apk for all architectures using melange:
```
docker run --rm --privileged -v "${PWD}":/work \
cgr.dev/chainguard/melange build melange.yaml \
docker run --rm --privileged -v "${PWD}":/work \
--entrypoint=melange --workdir=/work \
cgr.dev/chainguard/sdk build melange.yaml \
--arch amd64,aarch64,armv7 \
--signing-key melange.rsa
```
Expand All @@ -83,7 +84,7 @@ To debug the above:
```
docker run --rm --privileged -it -v "${PWD}":/work \
--entrypoint sh \
cgr.dev/chainguard/melange
cgr.dev/chainguard/sdk
# Build apks (use just --arch amd64 to isolate issue)
melange build melange.yaml \
Expand All @@ -108,7 +109,7 @@ GITHUB_USERNAME="myuser"
REF="ghcr.io/${GITHUB_USERNAME}/hello-melange-apko/$(basename "${PWD}")"
docker run --rm -v "${PWD}":/work \
cgr.dev/chainguard/apko build --debug apko.yaml \
--entrypoint=apko --workdir=/work ghcr.io/wolfi-dev/sdk build --debug apko.yaml \
"${REF}" output.tar -k melange.rsa.pub \
--arch amd64,aarch64,armv7
```
Expand All @@ -127,7 +128,7 @@ To debug the above:
docker run --rm -it -v "${PWD}":/work \
-e REF="${REF}" \
--entrypoint sh \
cgr.dev/chainguard/apko
--workdir=/work ghcr.io/wolfi-dev/sdk
# Build image (use just --arch amd64 to isolate issue)
apko build --debug apko.yaml "${REF}" output.tar -k melange.rsa.pub --arch amd64,aarch64,armv7
Expand All @@ -149,7 +150,7 @@ docker run --rm -v "${PWD}":/work \
-e GITHUB_USERNAME="${GITHUB_USERNAME}" \
-e GITHUB_TOKEN="${GITHUB_TOKEN}" \
--entrypoint sh \
cgr.dev/chainguard/apko -c \
--workdir=/work ghcr.io/wolfi-dev/sdk -c \
'echo "${GITHUB_TOKEN}" | \
apko login ghcr.io -u "${GITHUB_USERNAME}" --password-stdin && \
apko publish --debug apko.yaml \
Expand Down

0 comments on commit 3180ee7

Please sign in to comment.