From f656edb5d3577bfe66f3678551a410cac5206720 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Tue, 1 May 2018 14:26:21 -0700 Subject: Add script to prepull docker images Change-Id: Icc57ac1ee6397c74a95a271989d18c612a2ed1b6 Issue-ID: INT-381 Signed-off-by: Gary Wu --- deployment/heat/onap-oom/scripts/prepull-docker.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 deployment/heat/onap-oom/scripts/prepull-docker.sh (limited to 'deployment') 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 " + 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 -- cgit 1.2.3-korg