summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-06-06 10:34:06 -0400
committerVenkata Harish K Kajur <vk250x@att.com>2017-06-06 10:36:45 -0400
commit9d9078bdb77f868a495d7db0aa19bf170083d001 (patch)
tree6f97f3e2debb21149636ea75937ddde927546c42
parentf0995a173cc284af8f69aff4c66c7846837fd5a4 (diff)
Change deploy vm1 to only deploy dmaap docker once
Change-Id: Ic71066254bde18288ff69159727d6faea318097b Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
-rwxr-xr-xdeploy_vm1.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/deploy_vm1.sh b/deploy_vm1.sh
index 8660868..bf06952 100755
--- a/deploy_vm1.sh
+++ b/deploy_vm1.sh
@@ -79,7 +79,12 @@ function wait_for_container() {
done
}
-(cd /opt && git clone http://gerrit.onap.org/r/dcae/demo/startup/message-router && cd message-router && ./deploy.sh);
+if [ ! -d "/opt/message-router" ]; then
+ (cd /opt && \
+ git clone http://gerrit.onap.org/r/dcae/demo/startup/message-router && \
+ cd message-router && \
+ ./deploy.sh);
+fi
docker pull ${DOCKER_REGISTRY}/openecomp/aai-resources:${DOCKER_IMAGE_VERSION};
docker tag $DOCKER_REGISTRY/openecomp/aai-resources:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/openecomp/aai-resources:latest;