Public | Automated Build

Last pushed: 2 years ago
Short Description
Arch Linux container with base and base-devel that automatically runs makepkg
Full Description

This container is intended for building Arch Linux packages in an isolated environment. The container itself has the base and base-devel package groups installed and runs makepkg -sfc from the /build directory when launched.

The command is run by a build user with UID 1000, it will chown the contents of the /build directory to it. The reason for this is that makepkg can no longer be run as root. Make sure to check and potentially fix file permissions in the build folder after running this container.

To use this container cd into a folder containing a PKGBUILD and run like this:

docker run --rm -v $(pwd):/build tazjin/arch-pkgbuild

This image is available as an automated build from Docker Hub

Docker Pull Command
Owner
tazjin
Source Repository

Comments (4)
tazjin
3 years ago

@sjug I've updated the container to run all builds as a build user instead of root. This will potentially cause file ownership to differ from the user that you run the container as, but it should otherwise work. Make sure to chown things correctly afterwards :)

sjug
3 years ago

thanks tazjin

tazjin
3 years ago

I'd prefer a makearound with a little start script that creates a user with the UID of the user calling Docker (passed in through the environment & defaulting to 1000) and runs makepkg as that user. Will try to find time for it later today

sjug
3 years ago

makepkg cannot be run -asroot for some time now. Can you please implement a workaround such as https://github.com/archlinuxfr/yaourt/issues/67#issuecomment-68626199?