From 3b73097920be148bc82ce4a1c719cc42da8fc721 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Wed, 17 Mar 2021 10:40:23 +0100 Subject: Create python application for config change subscription. Signed-off-by: Bartosz Gardziejewski Change-Id: I690a188d155bed70f799ef1c6b947c9ecb1a5f47 Issue-ID: INT-1869 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 000e15e..fc15339 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,17 @@ FROM docker.io/sysrepo/sysrepo-netopeer2:latest COPY ./models /resources/models COPY ./scripts ./scripts +COPY ./src/python/netconf_server ./application/netconf_server +COPY ./src/python/netconf_server_application.py ./application/netconf_server_application.py +COPY ./src/python/requirements.txt ./application/requirements.txt +COPY ./src/python/setup.py ./application/setup.py + +RUN apt-get update && apt-get install -y python3 python3-pip && pip3 install -e ./application/ ENV ENABLE_TLS=false RUN mkdir -p /resources/certs && \ ./scripts/generate-certificates.sh /resources/certs +RUN mkdir /logs ENTRYPOINT ["./scripts/set-up-netopeer.sh", "/resources/models", "/resources/certs"] -- cgit 1.2.3-korg