aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/functions
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/lib/functions')
-rwxr-xr-xbootstrap/vagrant-onap/lib/functions18
1 files changed, 18 insertions, 0 deletions
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"