Docker image to build and automatically add Archlinux packages to a local repository
Find a file
Renovate Bot 081aaa8ec5
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
chore(deps): update luzifer/archlinux:latest docker digest to 5a5d17f
2025-11-16 02:53:53 +00:00
.github/workflows ci(deps): update docker/login-action action to v3.6.0 2025-09-29 10:53:48 +00:00
build.sh Fix dir permission warning 2020-10-03 16:52:31 +02:00
Dockerfile chore(deps): update luzifer/archlinux:latest docker digest to 5a5d17f 2025-11-16 02:53:53 +00:00
getkeys.sh Allow to skip GPG verification for broken-ish packages 2020-02-05 14:25:37 +01:00
README.md docs: update reference to image hosted on GHCR 2025-05-25 13:50:01 +02:00
renovate.json feat: enable renovate and publish to GHCR 2025-05-25 13:48:10 +02:00
run.sh Add timeout for makepkg 2023-02-18 15:57:04 +01:00

luzifer-docker / arch-repo-builder

This repo contains a docker image to build and automatically add Archlinux packages to a local repository (which then can be served through an HTTP server).

Usage

Local PKGBUILD

First possibility to use this image is to build a local PKGBUILD file:

docker run --rm -ti \
	-v "$(pwd):/src" \
	-v "/path/to/repo:/repo" \
	ghcr.io/luzifer-docker/arch-repo-builder:latest

This will build an image from this Gist, take the local PKGBUILD in /src, build the package, move the result into /repo and add it to the *.db.tar.* file found in the repo. (Which means you need to initialize the repo first: repo-add /path/to/repo/reponame.db.tar.xz)

Remote git repository

The second possibility is to build any git repo containing a PKGBUILD file:

docker run --rm -ti \
	-v "/path/to/repo:/repo" \
	ghcr.io/luzifer-docker/arch-repo-builder:latest \
	https://aur.archlinux.org/nerd-fonts-dejavu-complete.git

This will clone the given repository and then execute the same process as above.

Build without repo

If no db-file was found in /repo the package will not be added to the repo but only reside in the mounted /src.