aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main/docker
diff options
context:
space:
mode:
Diffstat (limited to 'ms/neng/src/main/docker')
-rw-r--r--ms/neng/src/main/docker/Dockerfile10
-rw-r--r--ms/neng/src/main/docker/startService.sh9
2 files changed, 19 insertions, 0 deletions
diff --git a/ms/neng/src/main/docker/Dockerfile b/ms/neng/src/main/docker/Dockerfile
new file mode 100644
index 00000000..db87c4c0
--- /dev/null
+++ b/ms/neng/src/main/docker/Dockerfile
@@ -0,0 +1,10 @@
+FROM TBD:TBD/TBD/TBD/alpine-java:8_jdk
+VOLUME /tmp
+ADD NetworkElementNameGen.jar app.jar
+VOLUME /opt/etc
+VOLUME /opt/aai
+ADD /opt/etc/ /opt/etc/
+ADD /opt/aai/ /opt/aai/
+ADD startService.sh /startService.sh
+RUN chmod 700 /startService.sh
+ENTRYPOINT ./startService.sh \ No newline at end of file
diff --git a/ms/neng/src/main/docker/startService.sh b/ms/neng/src/main/docker/startService.sh
new file mode 100644
index 00000000..e690311c
--- /dev/null
+++ b/ms/neng/src/main/docker/startService.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+touch /app.jar
+app_args=-Dspring.profiles.active=${SPRING_PROFILE}
+app_args=${app_args}" -Dpolicymgr_url="${POLICYMGR_URL}" -Dinstar_aaf_enc_pass="${AAF_PASS_ENC}
+app_args=${app_args}" -Daai_cert_pass="${AAI_CERT_PASSWORD}" -Daai_uribase="${AAI_URI_BASE}
+app_args=${app_args}" -Dnwelgen_db_user="${NWEG_DB_USER}" -Dnwelgen_db_pass="${NWEG_DB_PASS}" -Dnwelgen_db_url="${NWEG_DB_URL}
+echo "app_args ="${app_args}
+echo "app_args ="${app_args}
+java -Djava.security.egd=file:/dev/./urandom ${app_args} -Xms1024m -Xmx1024m -jar /app.jar