A Docker image for building apk packages for alpine
1.5K
A Docker image for building apk packages for alpine.
More infos on alpine packages :
RSA_PRIVATE_KEY: This is the contents of your RSA private key. (optional).PACKAGER_PRIVKEY and mount your private key if not using RSA_PRIVATE_KEY.RSA_PRIVATE_KEY_NAME: Defaults to ssh.rsa.RSA_PRIVATE_KEY./package/ssh/$RSA_PRIVATE_KEY_NAME.PACKAGER_PRIVKEY: Defaults to /package/ssh/$RSA_PRIVATE_KEY_NAME.RSA_PRIVATE_KEY.PACKAGER: This is the name of the packager used in package metadata.
Don't forget to chage it in your package docker run \
-v $PWD/package:/package \
-v $PWD/packages/:/packages \
craftdock/apk-builder
Or with an existing RSA key
docker run \
-e RSA_PRIVATE_KEY="$(cat /path/to/the/key/mykey.rsa)" \
-e RSA_PRIVATE_KEY_NAME="mykey.rsa" \
-v $PWD/package:/package \
-v $PWD/packages/:/packages \
craftdock/apk-builder
This would build the package in the $PWD/package folder, and place the resulting packages in the $PWD/packages/x86_64 folder.
You can use this image to run any commands :
docker run --rm -v $PWD:/package/ssh craftdock/apk-builder abuild-keygen -a -i
docker run --rm -v $PWD/package:/package craftdock/apk-builder abuild checksum
All examples can be found in the .example folder
Content type
Image
Digest
Size
72.3 MB
Last updated
over 7 years ago
docker pull craftdock/apk-builder