HUB
Sign inSign up

aljazmc/image-spinner

By aljazmc

•Updated 1 day ago

Docker image for creating custom Alpine Linux distributions.

Image
Developer tools
Operating systems
0

1.4K

aljazmc/image-spinner repository overview

⁠aljazmc/image-spinner

The Alpine Linux build tools, for building custom Alpine ISO images with mkimage.sh from the aports tree.

Docker pulls Image size Version platforms: amd64 | arm64 Alpine: 3.24.4 Alpine: 3.24.4 Alpine license: GPL-2.0-only CI Dockerfile license: MIT

Docker Hub⁠ · Source⁠ · All images⁠

⁠Overview

Base imagealpine:3.24.4
SoftwareAlpine Linux 3.24.4 build tools: abuild, alpine-conf, mkimage.sh of the aports tree
Also includedabuild, alpine-conf, git, GRUB, syslinux with isohybrid (amd64 only, Alpine has no other), mtools, squashfs-tools, xorriso, rsync, ShellCheck
Useraljazmc (uid 1000) with passwordless doas (doas apk add ...)
Tagslatest, 3.24.4, 3.24.4-YYYYMMDD

⁠Quick start

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"

⁠Workflow with Docker

⁠1. Prepare a directory
docker run --rm -v .:/home/aljazmc -w /home/aljazmc aljazmc/image-spinner:latest
⁠2. Configure aports/scripts/mkimg.test.sh according to your preferences
⁠3. Generate the iso with
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"

⁠Workflow with Docker Compose

⁠1. Prepare a directory
# 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
⁠2. Configure aports/scripts/mkimg.test.sh according to your preferences
⁠3. Generate the iso with
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"

⁠Notes

  • If 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" ....

⁠Tags

  • 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 Linux is the version of the alpine:3.24.4 base image.

⁠License

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:

SoftwareLicenseIn the image
abuild⁠GPL-2.0-onlyapk info --license abuild
alpine-conf⁠MITapk 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.

Tag summary

Content type

Image

Digest

sha256:c2dfb7838…

Size

30.1 MB

Last updated

1 day ago

docker pull aljazmc/image-spinner