summaryrefslogtreecommitdiff
path: root/test/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Dockerfile')
-rw-r--r--test/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Dockerfile b/test/Dockerfile
new file mode 100644
index 0000000..30247bf
--- /dev/null
+++ b/test/Dockerfile
@@ -0,0 +1,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