aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main/docker
diff options
context:
space:
mode:
authorBT2983 <BT2983@att.com>2018-07-23 13:11:35 -0600
committerBT2983 <BT2983@att.com>2018-07-23 13:11:35 -0600
commit5a398289dee4b666528aa77f4e38f9c68d35b254 (patch)
tree6e6f7215778424beacdd3637ddffa289fc35c39f /ms/neng/src/main/docker
parent84b6500a6c3a95b927df2fa90cdf8453ed2a028b (diff)
Adding naming micro-service code - scripts.
Docker and DB scripts. Change-Id: I2e9e153f6c72e5f5d6ee86cc9dfc275ec77b4642 Issue-ID: CCSDK-342 Signed-off-by: BT2983 <BT2983@att.com>
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