diff docker/prosody-e2e/Dockerfile @ 3497:73e04040d577

docker: update following name changes: `backend_e2e` now print properly backend logs
author Goffi <goffi@goffi.org>
date Fri, 16 Apr 2021 18:32:16 +0200
parents docker/prosody_e2e/Dockerfile@127dde80a0a5
children a6811543c7ff
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/prosody-e2e/Dockerfile	Fri Apr 16 18:32:16 2021 +0200
@@ -0,0 +1,22 @@
+FROM prosody/prosody
+
+LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+# we synchronize tls-cert group with the one in libervia-web/libervia-backend
+RUN addgroup tls-cert --gid 9999 && adduser prosody tls-cert && \
+    # we want third party modules
+    apt-get update && apt-get install -y --no-install-recommends mercurial && \
+    mkdir -p /usr/local/share/prosody && \
+    hg clone https://hg.prosody.im/prosody-modules /usr/local/share/prosody/modules && \
+    chown -R prosody:prosody /usr/local/share/prosody
+
+COPY --chown=root:prosody prosody.cfg.lua /etc/prosody/prosody.cfg.lua
+COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/libervia/certificates/server1.test.pem
+COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/libervia/certificates/server1.test-key.pem
+
+# we add exec to handle properly signals, this is missing upstream
+# FIXME: to be removed when new images are generated with
+#        https://github.com/prosody/prosody-docker/pull/65
+RUN sed -i "s/^runuser -u prosody/exec \0/" /entrypoint.sh