This is a Docker image for building 32bit Alpine Linux packages.
In your Alpine Linux package source folder (the folder with your APKBUILD) create a Dockerfile
. You need to specify the FROM
image and PACKAGER_PRIVKEY
environment variable. This is the location of your private key file. The ONBUILD
triggers will copy *.rsa
to /package
and *.rsa.pub
to /etc/apk/keys
.
Here is an example Dockerfile
:
FROM boggart/alpine-abuild-32bit
ENV PACKAGER_PRIVKEY /package/andys@andyshinn.as-54f23052.rsa
Then build your Docker image for the package with docker build -t package .
and run it with docker run --name package package
to build the Alpine Linux package. You can copy the apk
file out of the container after it is build with docker cp package:/packages .
.
You will have a packages
folder locally with your built Alpine Linux packages.
There are a number of environment variables you can change at package build time:
PACKAGER_PRIVKEY
: defaults to/package/abuild.rsa
REPODEST
: defaults to/packages
PACKAGER
: defaults toGlider Labs <team@gliderlabs.com>
Check out https://github.com/andyshinn/alpine-pkg-hub for an example of this process.