summaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/scripts
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-05-01 14:26:21 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-05-01 14:26:21 -0700
commitf656edb5d3577bfe66f3678551a410cac5206720 (patch)
tree2f03a3853a4f674bf569b7ce335a25a73e30d070 /deployment/heat/onap-oom/scripts
parent1235f86c47589d228c33057a5cd62c33258ae5c3 (diff)
Add script to prepull docker images
Change-Id: Icc57ac1ee6397c74a95a271989d18c612a2ed1b6 Issue-ID: INT-381 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/scripts')
-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