diff options
Diffstat (limited to 'deploy_vm1.sh')
-rwxr-xr-x | deploy_vm1.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deploy_vm1.sh b/deploy_vm1.sh index f4e65a6..163e47b 100755 --- a/deploy_vm1.sh +++ b/deploy_vm1.sh @@ -12,6 +12,7 @@ export TRAVERSAL_LOGS="/opt/aai/logroot/AAI-TRAVERSAL"; 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"; if [ ! -d "$RESOURCES_LOGS" ]; then @@ -43,6 +44,12 @@ then mkdir -p $MODEL_LOADER_LOGS; fi; +if [ ! -d "$UI_LOGS" ]; +then + echo "Warning: Unable to find the volume directory $UI_LOGS so creating it as regular directory"; + mkdir -p $UI_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}"; @@ -101,6 +108,9 @@ docker tag $DOCKER_REGISTRY/openecomp/datarouter-service:$DOCKER_IMAGE_VERSION $ docker pull ${DOCKER_REGISTRY}/openecomp/model-loader:${DOCKER_IMAGE_VERSION}; docker tag $DOCKER_REGISTRY/openecomp/model-loader:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/openecomp/model-loader:latest; +docker pull ${DOCKER_REGISTRY}/openecomp/sparky:${DOCKER_IMAGE_VERSION}; +docker tag $DOCKER_REGISTRY/openecomp/sparky:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/openecomp/sparky:latest; + # cleanup $DOCKER_COMPOSE_CMD stop $DOCKER_COMPOSE_CMD rm -f -v |