summaryrefslogtreecommitdiff
path: root/slave.Dockerfile
blob: e1eba96d59b939e0981770e7f9dbd75702313fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM archlinux:base-devel

WORKDIR /builder/

RUN pacman-key --init
RUN sed -i '/# The testing repositories are disabled by default/ i Include = /etc/pacman.d/pacman-releng.conf' /etc/pacman.conf
COPY pacman-releng.conf mirrorlist /etc/pacman.d/
COPY bootstrap-arch32-trust /
RUN /bootstrap-arch32-trust
RUN rm /bootstrap-arch32-trust
RUN pacman -Syu --noconfirm git openssh lsof moreutils wget devtools32
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

RUN /builder/lib/load-configuration
RUN rm /builder/work/.ssh/id_rsa /builder/work/.ssh/id_rsa.pub
COPY slave.conf /builder/conf/

CMD /builder/bin/build-packages