summaryrefslogtreecommitdiffstats
path: root/sliboot/src/main/resources/startSliboot.sh
diff options
context:
space:
mode:
authorAgarwal, Ruchira (ra1926) <ra1926@att.com>2020-04-09 16:15:58 +0000
committerAgarwal, Ruchira (ra1926) <ra1926@att.com>2020-04-09 16:15:58 +0000
commitc54e03858c9fd593f239843fbcc3a81c5a909dd8 (patch)
treec231ebbe615246f9c6443be454cf1d16137b345f /sliboot/src/main/resources/startSliboot.sh
parentbaa3c12d7cba823576f6777ddacb53721b3cc8e3 (diff)
integrate spring sli container with AAF
add certs and configure spring sli for AAF Issue-ID: CCSDK-2304 Signed-off-by: Agarwal, Ruchira (ra1926) <ra1926@att.com> Change-Id: Ia4f784a42ee7e5db0b3a2b82b55b23af705797ce
Diffstat (limited to 'sliboot/src/main/resources/startSliboot.sh')
-rw-r--r--sliboot/src/main/resources/startSliboot.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/sliboot/src/main/resources/startSliboot.sh b/sliboot/src/main/resources/startSliboot.sh
index db1dfaa0..8c5f723c 100644
--- a/sliboot/src/main/resources/startSliboot.sh
+++ b/sliboot/src/main/resources/startSliboot.sh
@@ -25,6 +25,8 @@ export CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
export SLIBOOT_JAR=${SLIBOOT_JAR:-${ccsdk.sliboot.jar}}
export SVCLOGIC_DIR=${SVCLOGIC_DIR:-opt/onap/ccsdk/svclogic/graphs}
export LOG_PATH=${LOG_PATH:-/var/log/onap/ccsdk}
+export CCSDK_CONFIG_DIR=${CCSDK_CONFIG_DIR:-/opt/onap/ccsdk/config}
+export JAVA_SECURITY_DIR=${JAVA_SECURITY_DIR:-/etc/ssl/certs/java}
#
# Wait for database
@@ -51,6 +53,12 @@ END
# Initialize schema
mysql -h ${MYSQL_DB_HOST} -u ${MYSQL_DB_USER} -p${MYSQL_DB_PASSWD} ${MYSQL_DB_DATABASE} < ${CCSDK_HOME}/config/schema.sql
+# Install ssl and java certificates
+COPY $CCSDK_CONFIG_DIR/truststoreONAPall.jks $JAVA_SECURITY_DIR
+RUN keytool -importkeystore -srckeystore $JAVA_SECURITY_DIR/truststoreONAPall.jks -srcstorepass changeit -destkeystore $JAVA_SECURITY_DIR/cacerts -deststorepass changeit
+
+echo -e "\nCerts ready"
+
cd $CCSDK_HOME
-java -DserviceLogicDirectory=${SVCLOGIC_DIR} -DLOG_PATH=${LOG_PATH} -jar ${CCSDK_HOME}/lib/${SLIBOOT_JAR}
+java -DserviceLogicDirectory=${SVCLOGIC_DIR} -Dcadi_prop_files=${CCSDK_CONFIG_DIR}/org.onap.sdnc.props -Dserver.ssl.key-store=${CCSDK_CONFIG_DIR}/org.onap.sdnc.p12 -DLOG_PATH=${LOG_PATH} -jar ${CCSDK_HOME}/lib/${SLIBOOT_JAR}