Mercurial > libervia-backend
comparison docker/prosody_e2e/Dockerfile @ 3381:127dde80a0a5
docker: dockers images, first draft:
This patch introduce new docker images, replacing the unmaintained ones which were in
sat_docs.
Images + docker-compose files are provided to use SàT backend and Libervia, but also to
integrate and configure Prosody and SàT PubSub to run end-to-end tests.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 19 Oct 2020 09:30:45 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3380:4dbf9fcbf26d | 3381:127dde80a0a5 |
---|---|
1 FROM prosody/prosody | |
2 | |
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" | |
4 | |
5 ARG DEBIAN_FRONTEND=noninteractive | |
6 | |
7 # we synchronize tls-cert group with the one in salutatoi/sat | |
8 RUN addgroup tls-cert --gid 9999 && adduser prosody tls-cert && \ | |
9 # we want third party modules | |
10 apt-get update && apt-get install -y --no-install-recommends mercurial && \ | |
11 mkdir -p /usr/local/share/prosody && \ | |
12 hg clone https://hg.prosody.im/prosody-modules /usr/local/share/prosody/modules && \ | |
13 chown -R prosody:prosody /usr/local/share/prosody | |
14 | |
15 COPY --chown=root:prosody prosody.cfg.lua /etc/prosody/prosody.cfg.lua | |
16 COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/sat/certificates/server1.test.pem | |
17 COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/sat/certificates/server1.test-key.pem | |
18 | |
19 # we add exec to handle properly signals, this is missing upstream | |
20 # FIXME: to be removed when new images are generated with | |
21 # https://github.com/prosody/prosody-docker/pull/65 | |
22 RUN sed -i "s/^runuser -u prosody/exec \0/" /entrypoint.sh |