summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib
diff options
context:
space:
mode:
authorIdan Amit <ia096e@intl.att.com>2017-08-17 17:03:59 +0300
committerVictor Morales <victor.morales@intel.com>2017-08-21 09:12:39 -0500
commit0a295559ea688477327e4e9fa430d72e4bf82eea (patch)
tree7ce1307f4d999f865d6dbe7b9af2c7227237c9f3 /bootstrap/vagrant-onap/lib
parent9c0b46832ff031e337a13358eb83752c853aa1fc (diff)
Added parameter for pulling docker images
Updated sdc script accordingly Change-Id: I6de1c52ff42fc1f47cdfa0f56921c864c7182dcb Issue-Id: INT-101 Signed-off-by: Idan Amit <ia096e@intl.att.com>
Diffstat (limited to 'bootstrap/vagrant-onap/lib')
-rwxr-xr-xbootstrap/vagrant-onap/lib/asdc7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstrap/vagrant-onap/lib/asdc b/bootstrap/vagrant-onap/lib/asdc
index 0c09b0b64..fa4e499f7 100755
--- a/bootstrap/vagrant-onap/lib/asdc
+++ b/bootstrap/vagrant-onap/lib/asdc
@@ -95,8 +95,11 @@ function install_sdc {
sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \""$MR_IP_ADDR","$MR_IP_ADDR"\",/g" /data/environments/$ENV_NAME.json
sed -i "s/\"fqdn\":.*/\"fqdn\": [\""$MR_IP_ADDR"\", \""$MR_IP_ADDR"\"]/g" /data/environments/$ENV_NAME.json
- docker_openecomp_login
- bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p $NEXUS_DOCKER_PORT
+ install_docker
+ if [[ "$pull_docker_image" == "True" ]]; then
+ docker_openecomp_login
+ bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p $NEXUS_DOCKER_PORT
+ fi
}
# init_asdc() - Function that initialize SDC services