aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-topology/src/main/docker/extra-files
diff options
context:
space:
mode:
Diffstat (limited to 'cmso-topology/src/main/docker/extra-files')
-rw-r--r--cmso-topology/src/main/docker/extra-files/startService.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmso-topology/src/main/docker/extra-files/startService.sh b/cmso-topology/src/main/docker/extra-files/startService.sh
index 199c637..6efd912 100644
--- a/cmso-topology/src/main/docker/extra-files/startService.sh
+++ b/cmso-topology/src/main/docker/extra-files/startService.sh
@@ -1,7 +1,12 @@
#!/bin/sh
+AUTHENTICATION=${AUTHENTICATION:-proprietary-auth}
+JAVA_TRUSTSTORE=${JAVA_TRUSTSTORE:-etc/config/truststoreONAPall.jks}
+
VM_ARGS="${VM_ARGS} -Dserver.local.startpath=${RESOURCES_HOME}"
+VM_ARGS="${VM_ARGS} -Djavax.net.ssl.trustStore==${JAVA_TRUSTSTORE}"
+
echo "VM_ARGS="${VM_ARGS}
-java -Djava.security.egd=file:/dev/./urandom ${VM_ARGS} -Xms256m -Xmx1024m -jar ./app.jar
+java -Djava.security.egd=file:/dev/./urandom ${VM_ARGS} -Xms256m -Xmx1024m -jar ./app.jar --spring.profiles.active=${AUTHENTICATION}