summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-08-01 22:00:34 +0200
committerlouiz’ <louiz@louiz.org>2017-08-01 22:02:03 +0200
commit488c36f22e52b1b3f355af300c75cce201e3bc49 (patch)
treef1d2e850f39f9d92b6cf4af6fba33a4e8cf4cc2a /docker
parent5f5789a0eddea7128c3b0da63e95301186c84856 (diff)
downloadbiboumi-488c36f22e52b1b3f355af300c75cce201e3bc49.tar.gz
biboumi-488c36f22e52b1b3f355af300c75cce201e3bc49.tar.bz2
biboumi-488c36f22e52b1b3f355af300c75cce201e3bc49.tar.xz
biboumi-488c36f22e52b1b3f355af300c75cce201e3bc49.zip
Docker: run the openssl commands as the tester user, for permission issues
Diffstat (limited to 'docker')
-rw-r--r--docker/biboumi-test/debian/Dockerfile3
-rw-r--r--docker/biboumi-test/fedora/Dockerfile3
2 files changed, 4 insertions, 2 deletions
diff --git a/docker/biboumi-test/debian/Dockerfile b/docker/biboumi-test/debian/Dockerfile
index 232a585..b11df96 100644
--- a/docker/biboumi-test/debian/Dockerfile
+++ b/docker/biboumi-test/debian/Dockerfile
@@ -54,7 +54,8 @@ RUN git clone https://github.com/charybdis-ircd/charybdis.git && cd charybdis &&
RUN chown -R tester:tester /home/tester/ircd
+USER tester
+
RUN yes "" | openssl req -nodes -x509 -newkey rsa:4096 -keyout /home/tester/ircd/etc/ssl.key -out /home/tester/ircd/etc/ssl.pem
WORKDIR /home/tester
-USER tester
diff --git a/docker/biboumi-test/fedora/Dockerfile b/docker/biboumi-test/fedora/Dockerfile
index 384fd51..8ff418c 100644
--- a/docker/biboumi-test/fedora/Dockerfile
+++ b/docker/biboumi-test/fedora/Dockerfile
@@ -54,9 +54,10 @@ RUN git clone https://github.com/charybdis-ircd/charybdis.git && cd charybdis &&
RUN chown -R tester:tester /home/tester/ircd
+USER tester
+
RUN yes "" | openssl req -nodes -x509 -newkey rsa:4096 -keyout /home/tester/ircd/etc/ssl.key -out /home/tester/ircd/etc/ssl.pem
COPY coverity /home/tester/coverity
WORKDIR /home/tester
-USER tester