summaryrefslogtreecommitdiff
path: root/test/Dockerfile
blob: 30247bf07b63bb21add9a677e6db2c9698acfcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM pierres/archlinux
RUN pacman -Syu --noconfirm --needed base-devel devtools
RUN pacman-key --init
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel
RUN useradd -N -g users -G wheel -m tester
RUN install -d -o tester -g users /build
USER tester
RUN echo -e "\
%echo Generating signing key...\n\
Key-Type: RSA\n\
Key-Length: 1024\n\
Key-Usage: sign\n\
Name-Real: Bob Tester\n\
Name-Email: tester@localhost\n\
Expire-Date: 0\n\
%no-protection\n\
%commit\n\
%echo Done\n"\
| gpg --quiet --batch --no-tty --no-permission-warning --gen-key
RUN gpg --export | sudo pacman-key -a -
RUN sudo pacman-key --lsign-key tester@localhost
RUN echo -e 'BUILDDIR=/build\nPACKAGER="Bob Tester <tester@localhost>"' > /home/tester/.makepkg.conf