blob: e14ee8349fc3584f8c9bc24c10cd3c56091d6026 [file] [log] [blame]
Gary Wuf422ab82018-01-12 10:38:49 -08001#!/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
6if [ "$#" -ne 1 ]; then
7 PROXY=nexus3.onap.org:10001
8else
9 PROXY=$1
10fi
11
12
13if [ -z "$WORKSPACE" ]; then
14 export WORKSPACE=`git rev-parse --show-toplevel`
15fi
16
17MANIFEST=${WORKSPACE}/version-manifest/src/main/resources/docker-manifest.csv
18IMAGES=$(tail -n +2 $MANIFEST | tr ',' ':')
19
20for image in $IMAGES; do
21 docker pull ${PROXY}/${image}
22done