blob: 32efc6bafda5f7021b0c13061fd93a15e7f8628e [file] [log] [blame]
Gary Wu611424f2019-07-19 10:47:12 -07001#!/bin/bash
2
3if [ "$#" -lt 1 ]; then
4 echo This script pulls all the ONAP docker images contained in OOM helm charts
5 echo "$0 <oom repo directory> <proxy URL>"
6 exit 1
7fi
8
9OOM_DIR=$(realpath $1)
10PROXY="nexus3.onap.org:10001"
11
12if [ "$#" -eq 2 ]; then
13 PROXY=$2
14fi
15
16
17if [ -z "$WORKSPACE" ]; then
18 export WORKSPACE=`git rev-parse --show-toplevel`
19fi
20
21
22MANIFEST=$(mktemp --suffix=-docker-manifest.csv)
23$WORKSPACE/version-manifest/src/main/scripts/generate-docker-manifest.sh $MANIFEST $OOM_DIR
24IMAGES=$(tail -n +2 $MANIFEST | tr ',' ':')
25
26for image in $IMAGES; do
27 docker pull ${PROXY}/${image}
28done