diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-07 06:46:51 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-07 06:46:51 +0200 |
commit | e4de321c6e96eaa24639ed05befcea62dc3b3182 (patch) | |
tree | 0b59a94c5d752f818f7a5da25259cedd4d57507e /slave.Dockerfile | |
download | arch32-slave-e4de321c6e96eaa24639ed05befcea62dc3b3182.tar.xz |
initial commit
Diffstat (limited to 'slave.Dockerfile')
-rw-r--r-- | slave.Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/slave.Dockerfile b/slave.Dockerfile new file mode 100644 index 0000000..f0182d3 --- /dev/null +++ b/slave.Dockerfile @@ -0,0 +1,22 @@ +FROM archlinux:base-devel + +WORKDIR /builder/ + +RUN pacman-key --init +RUN curl -Ss https://arch.eckner.net/README | sed 's@^Server = https:.*$@Include = /etc/pacman.d/mirrorlist \\@' | bash +COPY mirrorlist /etc/pacman.d/ +RUN pacman -Syu --noconfirm git +RUN sed -i ' \ + /PACKAGER/ s/.*/PACKAGER="Erich Eckner <arch at eckner dot net>"/; \ + /^OPTIONS/ s/ debug/ !debug/ \ +' /etc/makepkg.conf + +RUN useradd -m builder +RUN git clone https://git.archlinux32.org/builder/ /builder +RUN mkdir /builder/work + +RUN chown builder:builder /builder/work + +USER builder + +CMD /builder/bin/build-packages |