aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/scripts/prepull-docker.sh
blob: d3556a8823e59a8d596760317e0ff92028c4b98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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