From 769a79125d17ded007894464a7151eafbd65f355 Mon Sep 17 00:00:00 2001 From: ebo Date: Mon, 9 Mar 2020 15:42:08 +0000 Subject: netconf-pnp-simulator: make PYTHONPATH always globally defined Add IT using ncclient and tox Issue-ID: INT-1124 Change-Id: I560d4fd2468ac93f8ead36062b2e316821af8d07 Signed-off-by: ebo --- test/mocks/netconf-pnp-simulator/engine/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/mocks/netconf-pnp-simulator/engine/Dockerfile') diff --git a/test/mocks/netconf-pnp-simulator/engine/Dockerfile b/test/mocks/netconf-pnp-simulator/engine/Dockerfile index 426606953..d4776a4e4 100644 --- a/test/mocks/netconf-pnp-simulator/engine/Dockerfile +++ b/test/mocks/netconf-pnp-simulator/engine/Dockerfile @@ -151,6 +151,7 @@ RUN set -eux \ COPY --from=build /opt/ /opt/ ENV LD_LIBRARY_PATH=/opt/lib:/opt/lib64 +ENV PYTHONPATH=/opt/lib/python3.7/site-packages COPY config/ /config VOLUME /config @@ -160,6 +161,9 @@ RUN adduser --system --disabled-password --gecos 'Netconf User' netconf ENV HOME=/home/netconf VOLUME $HOME/.local/share/virtualenvs +# This is NOT a robust health check but it does help tox-docker to detect when +# it can start the tests. +HEALTHCHECK --interval=1s --start-period=2s --retries=10 CMD test -f /run/netopeer2-server.pid EXPOSE 830 -- cgit 1.2.3-korg