diff options
author | ebo <eliezio.oliveira@est.tech> | 2020-03-09 15:42:08 +0000 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2020-03-11 21:06:13 +0000 |
commit | 769a79125d17ded007894464a7151eafbd65f355 (patch) | |
tree | c5a40275f7b7eba8f3bd1e9665ac0ba461209912 /test/mocks/netconf-pnp-simulator/engine/Dockerfile | |
parent | c27713e8c8b5467e8e900f7020227de366c67014 (diff) |
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 <eliezio.oliveira@est.tech>
Diffstat (limited to 'test/mocks/netconf-pnp-simulator/engine/Dockerfile')
-rw-r--r-- | test/mocks/netconf-pnp-simulator/engine/Dockerfile | 4 |
1 files changed, 4 insertions, 0 deletions
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 |