aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorGrzegorz Wielgosinski <g.wielgosins@samsung.com>2021-03-24 13:24:05 +0100
committerGrzegorz Wielgosinski <g.wielgosins@samsung.com>2021-03-26 13:46:04 +0100
commitead5573e8e43e7e4ae795ff6029635fa5bf2a284 (patch)
tree77f92612b5e3df1b49f7bca442e9fb7d6d8f02c5 /docker/Dockerfile
parent29e0ba3179409458b96089dd37452d4a11cc32d3 (diff)
Configure maven to build docker imagehonolulu
Issue-ID: INT-1896 Signed-off-by: Grzegorz Wielgosinski <g.wielgosins@samsung.com> Change-Id: Id0d201b26bc946af6cd0af34714fb912e2aef77f
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