diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2017-04-15 14:37:49 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2017-04-15 14:37:49 +0200 |
commit | 446edc13a9b3e354f93f05bf46be484a5d5f10e7 (patch) | |
tree | 54fb1cf6b26620cf51cabdbcb498ae60908d4731 /test/Dockerfile | |
parent | 282bf65c81e278b9237b4c202d325642bc0aa1a3 (diff) |
Run tests using docker
Diffstat (limited to 'test/Dockerfile')
-rw-r--r-- | test/Dockerfile | 22 |
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 |