To create apk
packages for alpine, you need an AlpineLinux environment. The
fastest way to have such environment is to use latest docker image. This
project is a quick way to enter into AlpineLinux's world :-)
The only requirement is docker
, make
, git
, and sudo
on your linux
workstation, but you probably have it installed already.
The main make targets are amd64
and arm32v7
.
This is the simplest way to use the environment, as it is just an AlpineLinux docker image and an entrypoint to initialize abuild configuration before starting a shell
To access amd64
environment, simply run
make amd64
To have an arm environment on a amd64 host, we'll need docker, qemu and
binfmt_misc
linux capability. Qemu executable is provided by
qemu-arm
package and copied to host from docker image. Then it is registered as arm
executable interpreter using
binfmt_misc
To access arm32v7
environment, simply run
make arm32v7
By default, alpine-edge
is used as base image, but this can be overridden by
ALPINE_RELEASE
env variable
make amd64 -e ALPINE_RELEASE=3.10