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.
This commit is contained in:
parent
a692ba8e2e
commit
0e7f9c1247
1 changed files with 539 additions and 0 deletions
22
docker/prosody_e2e/Dockerfile
Normal file
22
docker/prosody_e2e/Dockerfile
Normal file
|
|
@ -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 salutatoi/sat
|
||||
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/sat/certificates/server1.test.pem
|
||||
COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/sat/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
|
||||
Loading…
Reference in a new issue