aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/oom
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-02-02 08:26:50 -0800
committerVictor Morales <victor.morales@intel.com>2018-02-05 02:57:18 -0800
commit472a3069ab2c7de0969051fd170dacf4c76015e5 (patch)
tree0c1fdbf9f1736289f08af23909654f9a49532fa2 /bootstrap/vagrant-onap/lib/oom
parent7b94e0a63c3598eea5e1eed18bb5cd1cd0b0beb2 (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/oom')
-rwxr-xr-xbootstrap/vagrant-onap/lib/oom19
1 files changed, 3 insertions, 16 deletions
diff --git a/bootstrap/vagrant-onap/lib/oom b/bootstrap/vagrant-onap/lib/oom
index ef7e5ede5..d52c029e4 100755
--- a/bootstrap/vagrant-onap/lib/oom
+++ b/bootstrap/vagrant-onap/lib/oom
@@ -33,7 +33,7 @@ function _pull_k8s_images {
"k8s-dns-sidecar-amd64:1.14.5" "k8s-dns-kube-dns-amd64:1.14.5" \
"k8s-dns-dnsmasq-nanny-amd64:1.14.5" "heapster-influxdb-amd64:v1.3.3" \
"heapster-grafana-amd64:v4.4.3" "heapster-amd64:v1.4.0" "pause-amd64:3.0"; do
- pull_docker_image gcr.io/google_containers/$image &
+ pull_docker_image gcr.io/google_containers/$image &
done
}
@@ -72,7 +72,7 @@ function _install_kubernetes {
_pull_rancher_images
_pull_k8s_images
pull_docker_image $rancher_agent
- _wait_docker_pull
+ wait_docker_pull
pushd /opt/rancher/current/
export RANCHER_ENVIRONMENT=`./rancher env create -t kubernetes onap_on_kubernetes`
@@ -146,19 +146,6 @@ for (i in vname) {
done
}
-# _wait_docker_pull() - Function that waits for all docker pull processes
-function _wait_docker_pull {
- local counter=150
-
- while [ $(ps -ef | grep "docker pull" | wc -l) -gt 1 ]; do
- sleep $oom_delay
- counter=$((counter - 1))
- if [ "$counter" -eq 0 ]; then
- break
- fi
- done
-}
-
# get_oom_images() - Function that retrieves ONAP images from official hub
function get_oom_images {
if [[ "$build_image" == "True" ]]; then
@@ -174,7 +161,7 @@ function get_oom_images {
_pull_images_from_yaml_file $values_file
done
docker logout
- _wait_docker_pull
+ wait_docker_pull
fi
}