aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2021-03-09 12:54:38 +0100
committerZebek Bogumil <bogumil.zebek@nokia.com>2021-03-10 09:31:58 +0100
commit4af5241ab25b0103d8ea680789aaf9a8696dfc75 (patch)
tree36ccae11ebf094aa1ddd65df309b7531ce0db1ff /Dockerfile
parentc9975cb96ba4e0208e72399ed80f909beb95d9d9 (diff)
Move pnf simulator to the new repo
In the first phase we renamed project from pnf simulator to vesclient. Next steps: package rename, update Readme.md, upgrade project dependencies. Issue-ID: INT-1869 Signed-off-by: Bogumil Zebek<bogumil.zebek@nokia.com> Change-Id: I7714792f9739eb746c9c533e8ef41b9618a3a1d9
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ae26b36
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+FROM docker.io/openjdk:11-jre-slim
+COPY --from=python:3.6 / /
+
+ARG VERSION=${version}
+
+ADD target/libs /app/libs
+ADD config /opt/db/config
+ADD ./templates /app/templates
+ADD ./src/main/resources/application.properties /app/application.properties
+ADD target/vesclient-${VERSION}.jar /app/vesclient.jar
+CMD apk update
+CMD apk add ca-certificates
+RUN python -m pip install -r /opt/db/config/requirements.txt
+ADD certificates /usr/local/share/ca-certificates/
+RUN update-ca-certificates
+CMD python /opt/db/config/mongo_db_schema_creation.py \
+ && if [ -f /app/store/trust.pass ]; then cp /app/store/trust.pass /app/store/truststore.pass; fi \
+ && java -Dspring.config.location=file:/app/application.properties -cp /app/libs/*:/app/vesclient.jar org.onap.pnfsimulator.Main \