From 611424ff732211b920402518a1a0abd23d658f03 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Fri, 19 Jul 2019 10:47:12 -0700 Subject: Script to pull ONAP images in helm charts Issue-ID: INT-1117 Signed-off-by: Gary Wu Change-Id: Iefba99a8cec034e3fb8d0bf828aeb342ee0f8d5e --- .../src/main/scripts/pull-docker-images.sh | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 version-manifest/src/main/scripts/pull-docker-images.sh diff --git a/version-manifest/src/main/scripts/pull-docker-images.sh b/version-manifest/src/main/scripts/pull-docker-images.sh new file mode 100755 index 000000000..32efc6baf --- /dev/null +++ b/version-manifest/src/main/scripts/pull-docker-images.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +if [ "$#" -lt 1 ]; then + echo This script pulls all the ONAP docker images contained in OOM helm charts + echo "$0 " + exit 1 +fi + +OOM_DIR=$(realpath $1) +PROXY="nexus3.onap.org:10001" + +if [ "$#" -eq 2 ]; then + PROXY=$2 +fi + + +if [ -z "$WORKSPACE" ]; then + export WORKSPACE=`git rev-parse --show-toplevel` +fi + + +MANIFEST=$(mktemp --suffix=-docker-manifest.csv) +$WORKSPACE/version-manifest/src/main/scripts/generate-docker-manifest.sh $MANIFEST $OOM_DIR +IMAGES=$(tail -n +2 $MANIFEST | tr ',' ':') + +for image in $IMAGES; do + docker pull ${PROXY}/${image} +done -- cgit 1.2.3-korg