Mercurial > libervia-backend
annotate docker/backend_e2e/Dockerfile @ 3387:b3e7e3c49d8f
docker (compose): test environment variable + network alias:
`SAT_TEST_ENV_E2E` is set to `1` to indicate that e2e environment requirement are
available (notably specific accounts and hosts created). The e2e tests needing it won't be
launched if this variable is not set.
A network alias is set for the backend at `sat.test` (to have a tld available, needed for
some network libraries like OpenSSL).
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:15 +0100 |
parents | bcdfe7905409 |
children | f023f06fa344 |
rev | line source |
---|---|
3381 | 1 FROM salutatoi/sat |
2 | |
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" | |
4 | |
5 USER root | |
6 | |
7 # we install pre-generated certificates so we can do tests with valid TLS | |
8 COPY --chown=root:root certificates/minica.pem /usr/local/share/ca-certificates/minica.crt | |
9 COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/sat/certificates/server1.test.pem | |
10 COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/sat/certificates/server1.test-key.pem | |
11 RUN update-ca-certificates | |
12 | |
13 COPY --chown=root:root sat.conf /etc/sat.conf | |
14 | |
15 WORKDIR /home/sat | |
16 USER sat | |
17 | |
3385
bcdfe7905409
docker (backend_e2e): install pytest and sh
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
18 RUN pip install pytest sh |
bcdfe7905409
docker (backend_e2e): install pytest and sh
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
19 RUN ./entrypoint.sh \ |
bcdfe7905409
docker (backend_e2e): install pytest and sh
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
20 # we create the file sharing component which will autoconnect when backend is started |
bcdfe7905409
docker (backend_e2e): install pytest and sh
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
21 jp profile create file_sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file_sharing -A && \ |
bcdfe7905409
docker (backend_e2e): install pytest and sh
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
22 sat stop |