This file contains 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 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 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 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 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 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 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 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 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: | |
- "*" |
This file contains 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 main | |
import ( | |
"net/http" | |
"github.com/gin-gonic/gin" | |
) | |
func main() { | |
r := gin.Default() |