How to Build an Alpine Linux Package (https://www.matthewparris.org/build-an-alpine-package/)
docker run --rm -it -v "$PWD":/home/builder/package andyshinn/alpine-abuild:v15 checksum
docker run --name keys --entrypoint abuild-keygen -e PACKAGER="John Doe [email protected]" andyshinn/alpine-abuild:v15 -n
docker cp keys:/home/builder/.abuild/[email protected] /home/dev/alpine-package/
docker cp keys:/home/builder/.abuild/[email protected] /home/dev/alpine-package/
docker rm -f keys
docker run --rm -it
-e RSA_PRIVATE_KEY="$(cat /home/dev/alpine-package/[email protected])"
-e RSA_PRIVATE_KEY_NAME="[email protected]"
-v "$PWD:/home/builder/package"
-v "/home/dev/alpine-package/packages:/packages"
-v "/home/dev/alpine-package/[email protected]:/etc/apk/keys/[email protected]"
andyshinn/alpine-abuild:v15
docker cp /home/dev/alpine-package/packages/builder/x86_64/sway-aither-1.7-r4.apk alpine-container-name:/root
apk add --allow-untrusted /root/sway-aither-1.7-r4.apk