From 9d9078bdb77f868a495d7db0aa19bf170083d001 Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Tue, 6 Jun 2017 10:34:06 -0400 Subject: Change deploy vm1 to only deploy dmaap docker once Change-Id: Ic71066254bde18288ff69159727d6faea318097b Signed-off-by: Venkata Harish K Kajur --- deploy_vm1.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit 1.2.3-korg