Fix keytool invocation
[ccsdk/cds.git] / ms / blueprintsprocessor / application / src / main / docker / startService.sh
1 #!/bin/sh
2
3 nodeName=BlueprintsProcessor_1.0.0_$(cat /proc/self/cgroup | grep docker | sed s/\\//\\n/g | tail -1)
4
5 echo "${CLUSTER_ID}:${CLUSTER_NODE_ID} APP Config HOME : ${APP_CONFIG_HOME}"
6 export APP_HOME=/opt/app/onap
7
8 keytool -import -noprompt -trustcacerts -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit -alias ONAP -file $APP_CONFIG_HOME/ONAP_RootCA.cer
9
10 exec java -classpath "/etc:${APP_HOME}/lib/*:/lib/*:/src:/schema:/generated-sources:${APP_CONFIG_HOME}:${APP_HOME}" \
11 -DappName=${APP_NAME} -DappVersion=${BUNDLEVERSION} \
12 -DrouteOffer=${ROUTEOFFER} \
13 -DVERSION_ROUTEOFFER_ENVCONTEXT=${BUNDLEVERSION}/${STICKYSELECTORKEY}/${ENVCONTEXT} \
14 -DSecurityFilePath=/etc \
15 -DREST_NAME_NORMALIZER_PATTERN_FILE=/etc/PatternInputs.txt \
16 -Dms_name=org.onap.ccsdk.cds.blueprintsprocessor \
17 -Dlogging.config=${APP_CONFIG_HOME}/logback.xml \
18 -Djava.security.egd=file:/dev/./urandom \
19 -DAPPNAME=${APP_NAME} -DAPPENV=${APP_ENV} -DAPPVERSION=${APP_VERSION} -DNAMESPACE=${NAMESPACE} \
20 -Dspring.config.location=${APP_CONFIG_HOME}/ \
21 -Dhazelcast.shutdownhook.policy=GRACEFUL \
22 -Dhazelcast.graceful.shutdown.max.wait=600 \
23 org.onap.ccsdk.cds.blueprintsprocessor.BlueprintProcessorApplicationKt