X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fappc%2Fsrc%2Fmain%2Fscripts%2FdockerInstall.sh;h=7708dcb7f151673498a07754f926c104deb798a0;hb=6989e98ea8d2293aa90aacc1b864fb724643156e;hp=264e8d9078bb58f2e83cf34e05e2d2a40a09bee6;hpb=78e9b949505245ad8efcdc319107039e333da573;p=appc%2Fdeployment.git diff --git a/installation/appc/src/main/scripts/dockerInstall.sh b/installation/appc/src/main/scripts/dockerInstall.sh index 264e8d9..7708dcb 100644 --- a/installation/appc/src/main/scripts/dockerInstall.sh +++ b/installation/appc/src/main/scripts/dockerInstall.sh @@ -24,7 +24,7 @@ # This script runs during docker image build. # It starts opendaylight, installs the appc features, then shuts down opendaylight. # -ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} +ODL_HOME=${ODL_HOME:-/opt/opendaylight} ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U} SDNC_HOME=${SDNC_HOME:-/opt/onap/ccsdk} APPC_HOME=${APPC_HOME:-/opt/onap/appc} @@ -34,9 +34,6 @@ MYSQL_PASSWD=${MYSQL_PASSWD:-openECOMP1.0} appcInstallStartTime=$(date +%s) - -echo "Starting OpenDaylight" -${ODL_HOME}/bin/start echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize" sleep ${SLEEP_TIME} @@ -51,8 +48,8 @@ fi echo "Copying a working version of the logging configuration into the opendaylight etc folder" cp ${APPC_HOME}/data/org.ops4j.pax.logging.cfg ${ODL_HOME}/etc/org.ops4j.pax.logging.cfg -echo "Copying a new version of aaf cadi shiro into the opendaylight deploy folder" -cp ${APPC_HOME}/data/aaf-shiro-aafrealm-osgi-bundle.jar ${ODL_HOME}/deploy/aaf-shiro-aafrealm-osgi-bundle.jar +#echo "Copying a new version of aaf cadi shiro into the opendaylight deploy folder" +#cp ${APPC_HOME}/data/aaf-shiro-aafrealm-osgi-bundle.jar ${ODL_HOME}/deploy/aaf-shiro-aafrealm-osgi-bundle.jar echo "Installing APPC platform features" ${APPC_HOME}/bin/installFeatures.sh @@ -70,13 +67,18 @@ echo "" >> $APPC_HOME/data/properties/appc.properties echo "Copying the aaa shiro configuration into opendaylight" cp ${APPC_HOME}/data/aaa-app-config.xml ${ODL_HOME}/etc/opendaylight/datastore/initial/config/aaa-app-config.xml -echo "Stopping OpenDaylight and waiting for it to stop" -${ODL_HOME}/bin/stop +echo "Copying jetty, keystore for https into opendalight" +cp ${APPC_HOME}/data/jetty.xml ${ODL_HOME}/etc/jetty.xml +cp ${APPC_HOME}/data/keystore ${ODL_HOME}/etc/keystore +cp ${APPC_HOME}/data/custom.properties ${ODL_HOME}/etc/custom.properties + +#echo "Stopping OpenDaylight and waiting for it to stop" +#${ODL_HOME}/bin/stop #The karaf command will exit when odl shuts down. This is the most reliable way to wait for opendaylight to stop #before exiting the docker container. -${ODL_HOME}/bin/karaf -echo "Karaf process has stopped" -sleep 10s +#${ODL_HOME}/bin/client +#echo "Karaf process has stopped" +#sleep 10s appcInstallEndTime=$(date +%s) echo "Total Appc install took $(expr $appcInstallEndTime - $appcInstallStartTime) seconds"