aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-03-09 08:09:45 +0100
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-03-10 14:01:29 +0100
commit642053077c36de0c8a259da058061c6a0ed1e12c (patch)
treeb505ee07be13fefad0696b6c1d44b60cf2b3b74d /Dockerfile
parent4bfae30fa8a764542bbd1951b065c12ecfc32691 (diff)
Create base netconf-server image.
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ie19dd81608f56a4bc7f3b732cda8eed87136bd26 Issue-ID: INT-1869
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..000e15e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM docker.io/sysrepo/sysrepo-netopeer2:latest
+COPY ./models /resources/models
+COPY ./scripts ./scripts
+
+ENV ENABLE_TLS=false
+
+RUN mkdir -p /resources/certs && \
+ ./scripts/generate-certificates.sh /resources/certs
+
+ENTRYPOINT ["./scripts/set-up-netopeer.sh", "/resources/models", "/resources/certs"]