This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker load < output.tar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff output.tar output2.tar && echo "Files identical" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v "${PWD}":/work \ | |
| distroless.dev/apko build --debug apko.yaml \ | |
| factory-demo output.tar -k melange.rsa.pub \ | |
| --build-arch amd64,aarch64,armv7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| contents: | |
| repositories: | |
| - https://dl-cdn.alpinelinux.org/alpine/edge/main | |
| - '@local /work/packages' | |
| packages: | |
| - alpine-baselayout-data | |
| - hello-server@local | |
| accounts: | |
| groups: | |
| - groupname: nonroot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ tree packages/ | |
| packages/ | |
| βββ aarch64 | |
| β βββ APKINDEX.tar.gz | |
| β βββ hello-server-0.1.0-r0.apk | |
| βββ armv7 | |
| β βββ APKINDEX.tar.gz | |
| β βββ hello-server-0.1.0-r0.apk | |
| βββ x86_64 | |
| βββ APKINDEX.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v "${PWD}":/work \ | |
| --entrypoint sh \ | |
| distroless.dev/melange -c \ | |
| 'cd packages && for d in `find . -type d -mindepth 1`; do \ | |
| ( \ | |
| cd $d && \ | |
| apk index -o APKINDEX.tar.gz *.apk && \ | |
| melange sign-index --signing-key=../../melange.rsa APKINDEX.tar.gz\ | |
| ) \ | |
| done' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ tree packages/ | |
| packages/ | |
| βββ aarch64 | |
| βΒ Β βββ APKINDEX.tar.gz | |
| βΒ Β βββ hello-server-0.1.0-r0.apk | |
| βββ armv7 | |
| βΒ Β βββ APKINDEX.tar.gz | |
| βΒ Β βββ hello-server-0.1.0-r0.apk | |
| βββ x86_64 | |
| βββ APKINDEX.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm --privileged -v "${PWD}":/work \ | |
| distroless.dev/melange build melange.yaml \ | |
| --arch amd64,aarch64,armv7 \ | |
| --repository-append packages --signing-key melange.rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v "${PWD}":/work distroless.dev/melange keygen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package: | |
| name: hello-server | |
| version: 0.1.0 | |
| description: friendly little webserver | |
| target-architecture: | |
| - all | |
| copyright: | |
| - license: Apache-2.0 | |
| paths: | |
| - "*" |