summaryrefslogtreecommitdiffstats
path: root/test/ete/scripts/pull-docker-images.sh
blob: e14ee8349fc3584f8c9bc24c10cd3c56091d6026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash -x

# this script will pull all the docker images listed in the manifest
# specify a parameter to override the default proxy of nexus3.onap.org:100001

if [ "$#" -ne 1 ]; then
    PROXY=nexus3.onap.org:10001
else
    PROXY=$1
fi


if [ -z "$WORKSPACE" ]; then
    export WORKSPACE=`git rev-parse --show-toplevel`
fi

MANIFEST=${WORKSPACE}/version-manifest/src/main/resources/docker-manifest.csv
IMAGES=$(tail -n +2 $MANIFEST | tr ',' ':')

for image in $IMAGES; do
    docker pull ${PROXY}/${image}
done