aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelen Chen <helen.chen@huawei.com>2018-05-01 22:23:59 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-01 22:23:59 +0000
commit380104f1078a0d7d8c825d93734f7b57c1e089f7 (patch)
tree72a2fe53e5921d3741ba5706d0ef602328b99934
parent0d1b36de53f418c3a92e4ddd5efe7077f8154d99 (diff)
parentf656edb5d3577bfe66f3678551a410cac5206720 (diff)
Merge "Add script to prepull docker images"
-rwxr-xr-xdeployment/heat/onap-oom/scripts/prepull-docker.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/deployment/heat/onap-oom/scripts/prepull-docker.sh b/deployment/heat/onap-oom/scripts/prepull-docker.sh
new file mode 100755
index 000000000..d3556a882
--- /dev/null
+++ b/deployment/heat/onap-oom/scripts/prepull-docker.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -x
+
+if [ -z "$WORKSPACE" ]; then
+ export WORKSPACE=`git rev-parse --show-toplevel`
+fi
+
+if [ "$#" -ne 1 ]; then
+ echo "Usage: $0 <docker-proxy>"
+ exit 1
+fi
+DOCKER_PROXY=$1
+
+for DOCKER_IMAGE in $(tail -n +2 $WORKSPACE/version-manifest/src/main/resources/docker-manifest.csv | tr ',' ':'); do
+ docker pull $DOCKER_PROXY/$DOCKER_IMAGE
+done