Gary Wu | f656edb | 2018-05-01 14:26:21 -0700 | [diff] [blame] | 1 | #!/bin/bash -x |
2 | |||||
3 | if [ -z "$WORKSPACE" ]; then | ||||
4 | export WORKSPACE=`git rev-parse --show-toplevel` | ||||
5 | fi | ||||
6 | |||||
7 | if [ "$#" -ne 1 ]; then | ||||
8 | echo "Usage: $0 <docker-proxy>" | ||||
9 | exit 1 | ||||
10 | fi | ||||
11 | DOCKER_PROXY=$1 | ||||
12 | |||||
13 | for DOCKER_IMAGE in $(tail -n +2 $WORKSPACE/version-manifest/src/main/resources/docker-manifest.csv | tr ',' ':'); do | ||||
14 | docker pull $DOCKER_PROXY/$DOCKER_IMAGE | ||||
15 | done |