diff options
Diffstat (limited to 'deploy_vm1.sh')
-rwxr-xr-x | deploy_vm1.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy_vm1.sh b/deploy_vm1.sh index a5a25d2..2c1376b 100755 --- a/deploy_vm1.sh +++ b/deploy_vm1.sh @@ -13,6 +13,7 @@ export SEARCH_LOGS="/opt/aai/logroot/AAI-SEARCH"; export DATA_ROUTER_LOGS="/opt/aai/logroot/AAI-DATA-ROUTER"; export MODEL_LOADER_LOGS="/opt/aai/logroot/AAI-MODEL-LOADER"; export UI_LOGS="/opt/aai/logroot/AAI-UI"; +export CHAMP_LOGS="/opt/aai/logroot/AAI-CHAMP-SERVICE"; if [ ! -d "$RESOURCES_LOGS" ]; then @@ -50,6 +51,12 @@ then mkdir -p $UI_LOGS; fi; +if [ ! -d "$CHAMP_LOGS" ]; +then + echo "Warning: Unable to find the volume directory $CHAMP_LOGS so creating it as regular directory"; + mkdir -p $CHAMP_LOGS; +fi; + export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1); export DOCKER_REGISTRY="${DOCKER_REGISTRY:-localhost:5000}"; export AAI_HAPROXY_IMAGE="${AAI_HAPROXY_IMAGE:-aaionap/haproxy}"; @@ -121,6 +128,9 @@ docker tag $DOCKER_REGISTRY/onap/model-loader:$DOCKER_IMAGE_VERSION $DOCKER_REGI docker pull ${DOCKER_REGISTRY}/onap/sparky-be:${DOCKER_IMAGE_VERSION}; docker tag $DOCKER_REGISTRY/onap/sparky-be:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/sparky-be:latest; +docker pull ${DOCKER_REGISTRY}/onap/champ-service:${DOCKER_IMAGE_VERSION}; +docker tag $DOCKER_REGISTRY/onap/champ-service:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/champ-service:latest; + # cleanup $DOCKER_COMPOSE_CMD stop $DOCKER_COMPOSE_CMD rm -f -v @@ -149,6 +159,8 @@ $DOCKER_COMPOSE_CMD up -d sparky-be $DOCKER_COMPOSE_CMD up -d model-loader datarouter aai.searchservice.simpledemo.openecomp.org +$DOCKER_COMPOSE_CMD up -d champ-service + echo "A&AI Microservices are successfully started"; crontab < /opt/test-config/aaicrontab |