Gary Wu | f422ab8 | 2018-01-12 10:38:49 -0800 | [diff] [blame] | 1 | #!/bin/bash -x |
| 2 | |
| 3 | # this script will pull all the docker images listed in the manifest |
| 4 | # specify a parameter to override the default proxy of nexus3.onap.org:100001 |
| 5 | |
| 6 | if [ "$#" -ne 1 ]; then |
| 7 | PROXY=nexus3.onap.org:10001 |
| 8 | else |
| 9 | PROXY=$1 |
| 10 | fi |
| 11 | |
| 12 | |
| 13 | if [ -z "$WORKSPACE" ]; then |
| 14 | export WORKSPACE=`git rev-parse --show-toplevel` |
| 15 | fi |
| 16 | |
| 17 | MANIFEST=${WORKSPACE}/version-manifest/src/main/resources/docker-manifest.csv |
| 18 | IMAGES=$(tail -n +2 $MANIFEST | tr ',' ':') |
| 19 | |
| 20 | for image in $IMAGES; do |
| 21 | docker pull ${PROXY}/${image} |
| 22 | done |