Docker image for creating custom Alpine Linux distributions.
1.4K
The Alpine Linux build tools, for building custom Alpine ISO images with mkimage.sh from the aports tree.
Docker Hub · Source · All images
| Base image | alpine:3.24.4 |
| Software | Alpine Linux 3.24.4 build tools: abuild, alpine-conf, mkimage.sh of the aports tree |
| Also included | abuild, alpine-conf, git, GRUB, syslinux with isohybrid (amd64 only, Alpine has no other), mtools, squashfs-tools, xorriso, rsync, ShellCheck |
| User | aljazmc (uid 1000) with passwordless doas (doas apk add ...) |
| Tags | latest, 3.24.4, 3.24.4-YYYYMMDD |
Run in an empty directory; the commands work on the files of the current directory, mounted as the home directory of the container. CI runs these commands to check that they work.
# prepare the current directory: a signing key, and the aports tree cloned the first time
docker run --rm -v .:/home/aljazmc -w /home/aljazmc aljazmc/image-spinner
# the options of mkimage.sh, which builds the ISO
docker run --rm -v .:/home/aljazmc -w /home/aljazmc aljazmc/image-spinner "sh aports/scripts/mkimage.sh --help"
docker run --rm -v .:/home/aljazmc -w /home/aljazmc aljazmc/image-spinner:latest
docker run -it --rm --user aljazmc -v .:/home/aljazmc -w /home/aljazmc aljazmc/image-spinner:latest "sh aports/scripts/mkimage.sh --tag edge --outdir iso --arch x86_64 --repository https://dl-cdn.alpinelinux.org/alpine/edge/main --repository https://dl-cdn.alpinelinux.org/alpine/edge/community --profile test"
# docker-compose.yml
services:
spinner:
image: aljazmc/image-spinner
working_dir: /home/aljazmc
volumes:
- .:/home/aljazmc
environment:
HOME: /home/aljazmc
network_mode: host
# command
docker compose run --rm spinner
docker compose run --rm spinner "sh aports/scripts/mkimage.sh --tag edge --outdir iso --arch x86_64 --repository https://dl-cdn.alpinelinux.org/alpine/edge/main --repository https://dl-cdn.alpinelinux.org/alpine/edge/community --profile test"
aports/README.md doesn't exist, the aports repository is cloned into a temporary directory and then moved into aports. It comes from Alpine's GitLab, or, when GitLab refuses the machine, as it does GitHub's runners with HTTP 418, from its mirror on GitHub. Set APORTS_URL to clone from other URLs, tried in turn: docker run -e APORTS_URL="https://github.com/alpinelinux/aports.git" ....latest: the newest build.3.24.4: the Alpine Linux version in the image, e.g. aljazmc/image-spinner:3.24.4. Use it to stay on a known version.3.24.4-YYYYMMDD: the same version, built on that date (UTC), e.g. 3.24.4-20261122. Every build gets its own tag that never moves, so use it where you need exactly the same image again.alpine:3.24.4 base image.The Dockerfile, the scripts and this README are part of aljazmc/dockerfiles, released under the MIT License.
The software in the image keeps its own license:
| Software | License | In the image |
|---|---|---|
| abuild | GPL-2.0-only | apk info --license abuild |
| alpine-conf | MIT | apk info --license alpine-conf |
Every other package keeps its license too: apk info --license <package> shows it on Alpine, /usr/share/doc/<package>/copyright on Debian.
Content type
Image
Digest
sha256:c2dfb7838…
Size
30.1 MB
Last updated
1 day ago
docker pull aljazmc/image-spinner