From: Ruoyu Ying Date: Tue, 31 Jul 2018 11:14:14 +0000 (+0800) Subject: Add back music configs inside OOF HEAT script X-Git-Tag: 1.3.0~90^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=13ab66f705479cab2d778f0ec5e621cd2f8d6378;p=demo.git Add back music configs inside OOF HEAT script Add back music configs as MUSIC is not ready to a run as a service. Change-Id: I9e6cde04dcd2bdb3d2cb00513b96addd8cb0370e Issue-ID: OPTFRA-306 Signed-off-by: Ruoyu Ying --- diff --git a/boot/oof_vm_init.sh b/boot/oof_vm_init.sh index bbb8d9b2..4654ffbb 100644 --- a/boot/oof_vm_init.sh +++ b/boot/oof_vm_init.sh @@ -1,11 +1,13 @@ #!/bin/bash + NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt) NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt) NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) +CASS_MUSIC_IMAGE_VERSION=$(cat /opt/config/cass_version.txt) +MUSIC_IMAGE_VERSION=$(cat /opt/config/music_version.txt) HAS_IMAGE_VERSION=$(cat /opt/config/has_docker_version.txt) OSDF_IMAGE_VERSION=$(cat /opt/config/osdf_docker_version.txt) -MUSIC_URL=music.api.simpledemo.onap.org cd /opt/optf-has git pull @@ -13,18 +15,105 @@ git pull COND_CONF=/opt/optf-has/conductor.conf LOG_CONF=/opt/optf-has/log.conf -#Certification file for OOF-HAS -BUNDLE=/opt/optf-has/AAF_RootCA.cer +# Certification file for OOF-HAS AAI_cert=/usr/local/bin/AAF_RootCA.cer +BUNDLE=/opt/optf-has/AAF_RootCA.cer OSDF_IMG=${NEXUS_DOCKER_REPO}/onap/optf-osdf:${OSDF_IMAGE_VERSION} HAS_IMG=${NEXUS_DOCKER_REPO}/onap/optf-has:${HAS_IMAGE_VERSION} -# pull images from repo +# pull OOF images from repo docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO docker pull ${OSDF_IMG} docker pull ${HAS_IMG} +# Install MUSIC +# MUSIC parameters +CASS_IMG=${NEXUS_DOCKER_REPO}/onap/music/cassandra_music:$CASS_MUSIC_IMAGE_VERSION +MUSIC_IMG=${NEXUS_DOCKER_REPO}/onap/music/music:$MUSIC_IMAGE_VERSION +TOMCAT_IMG=library/tomcat:8.5 +ZK_IMG=library/zookeeper:3.4 +WORK_DIR=/opt/optf-has +CASS_USERNAME=cassandra1 +CASS_PASSWORD=cassandra1 + +# pull MUSIC images +docker pull ${ZK_IMG} +docker pull ${TOMCAT_IMG} +docker pull ${CASS_IMG} +docker pull ${MUSIC_IMG} + +# create directory for music properties and logs +mkdir -p /opt/optf-has/music/properties +mkdir -p /opt/optf-has/music/logs + +# add music.properties file +cat > /opt/optf-has/music/properties/music.properties<