aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..08bb20f
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,16 @@
+FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0
+
+COPY --chown=onap:onap a1-pe-simulator*.jar /a1-pe-simulator/a1-pe-simulator.jar
+
+# Create conf directory where vnf.config and topology files will be placed by ONAP controller
+USER root
+RUN mkdir /var/netconf2 && chown onap:onap /var/netconf2
+USER onap
+
+COPY --chown=onap:onap resource/* /var/netconf2/
+
+WORKDIR /a1-pe-simulator
+
+EXPOSE 9998
+
+ENTRYPOINT exec java $JAVA_SEC_OPTS $JAVA_OPTS -Djava.security.egd=file:/dev/urandom -Duser.home=/a1-pe-simulator -Dproc.name=a1-pe-simulator -jar a1-pe-simulator.jar