From 472a3069ab2c7de0969051fd170dacf4c76015e5 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Fri, 2 Feb 2018 08:26:50 -0800 Subject: Update SDC instructions The variables and instructions of SDC script were out of date. This change includes the usage of "src_folders" variable besides the simplification of the process. Change-Id: I557b2a9a2a2ed567003230febfae56a043a2e9e2 Signed-off-by: Victor Morales Issue-ID: INT-16 --- bootstrap/vagrant-onap/lib/functions | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bootstrap/vagrant-onap/lib/functions') diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions index ba128d965..435c62177 100755 --- a/bootstrap/vagrant-onap/lib/functions +++ b/bootstrap/vagrant-onap/lib/functions @@ -256,6 +256,21 @@ function pull_docker_image { fi } +# wait_docker_pull() - Function that waits for all docker pull processes +function wait_docker_pull { + local counter=60 + local delay=${1:-60} + + sleep $delay + while [ $(ps -ef | grep "docker pull" | wc -l) -gt 1 ]; do + sleep $delay + counter=$((counter - 1)) + if [ "$counter" -eq 0 ]; then + break + fi + done +} + # run_docker_image() - Starts a Docker instance function run_docker_image { install_docker @@ -334,6 +349,9 @@ function build_docker_image { if [ $profile ]; then docker_build+=" -P $profile" fi + if [[ "$debug" == "False" ]]; then + docker_build+=" -q" + fi if [ $http_proxy ]; then if ! grep -ql "docker.buildArg.http_proxy" pom.xml ; then docker_build+=" -Ddocker.buildArg.http_proxy=$http_proxy" -- cgit 1.2.3-korg