diff options
author | Victor Morales <victor.morales@intel.com> | 2018-02-02 08:26:50 -0800 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2018-02-05 02:57:18 -0800 |
commit | 472a3069ab2c7de0969051fd170dacf4c76015e5 (patch) | |
tree | 0c1fdbf9f1736289f08af23909654f9a49532fa2 /bootstrap/vagrant-onap/lib/functions | |
parent | 7b94e0a63c3598eea5e1eed18bb5cd1cd0b0beb2 (diff) |
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 <victor.morales@intel.com>
Issue-ID: INT-16
Diffstat (limited to 'bootstrap/vagrant-onap/lib/functions')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/functions | 18 |
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" |