comparison docker/backend-dev-e2e/Dockerfile @ 3641:0ffaa231138c

docker: Libervia revision can now be specified: Using the `DOCKER_LIBERVIA_REV` environment variable, backend (and related repos) revision can now be specified. By default (variable empty or not set), the current `tip` version is used, and `dev` is used for tagging. If the variable is set, the revision will be used and used for tagging the image.
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 11:14:17 +0200
parents 73e04040d577
children 9c50d2f812c1 d5fd630b57bb
comparison
equal deleted inserted replaced
3640:f4c02bdb2d91 3641:0ffaa231138c
1 FROM libervia/backend:dev 1 ARG REVISION=dev
2 FROM libervia/backend:${REVISION}
2 3
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" 4 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
4 5
5 USER root 6 USER root
6 7
44 USER libervia 45 USER libervia
45 46
46 RUN \ 47 RUN \
47 # pytest and its plugins 48 # pytest and its plugins
48 pip install pytest pytest-timeout pytest-dependency \ 49 pip install pytest pytest-timeout pytest-dependency \
49 # needed to test jp 50 # needed to test libervia-cli
50 sh \ 51 sh \
51 # needed to test libervia 52 # needed to test libervia
52 helium \ 53 helium \
53 # needed to check sent emails 54 # needed to check sent emails
54 aiosmtpd \ 55 aiosmtpd \
55 # useful for debugging 56 # useful for debugging
56 pudb 57 pudb
57 58
58 RUN ./entrypoint.sh \ 59 RUN ./entrypoint.sh \
59 # we create the file sharing component which will autoconnect when backend is started 60 # we create the file sharing component which will autoconnect when backend is started
60 jp profile create file_sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file_sharing -A && \ 61 li profile create file_sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file_sharing -A && \
61 libervia-backend stop 62 libervia-backend stop
62 63
63 ENV LIBERVIA_TEST_REPORT_DIR=/reports 64 ENV LIBERVIA_TEST_REPORT_DIR=/reports
64 ENV DISPLAY=:0 65 ENV DISPLAY=:0
65 USER root 66 USER root