Docker image to create a test environment to build PKGBUILD for AUR
- Run
make build
to build pkgbuild-test docker image
- Create a Dockerfile using the
bonohub13/pkgbuild-test
image as a base- Example: (note:
builduser
is the default user for building PKGBUILD)
FROM bonohub13/pkgbuild-test RUN pacman -Syu --noconfirm USER builduser RUN git clone https://aur.archlinux.org/aura /tmp/aura WORKDIR /tmp/aura RUN makepkg -s --noconfirm USER root # The <mount point> will be specifically defined in Makefile later CMD [ "mv", "/tmp/aura", "<mount point>" ]
- Example: (note:
- Create a Makefile to make the build process easier (optional)
- Makefile
SHELL:=bash all: build run clean: sudo rm -rf mnt/* build: docker build . --no-cache=true \ -t bonohub13/aura_testbuild -f Dockerfile # In this case, /mnt would be the <mount point> in the Dockerfile # defined earlier. run: clean mkdir -p mnt docker run --rm -it -v $(shell pwd)/mnt:/mnt \ bonohub13/aura_buildtest
- Run and build the PKGBUILD with
make
Anything made during the build process would be in mnt
directory in this case.