summaryrefslogtreecommitdiffstats
path: root/test/ete
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-01-12 10:38:49 -0800
committerGary Wu <gary.i.wu@huawei.com>2018-01-12 18:40:29 +0000
commitf422ab8b4e907d9240b3d30b70431665ff8ec738 (patch)
tree817a46216a7aabfa59c0211406e44e64fa6033df /test/ete
parentb57cc8f1088220cd9911dd88a559ea75dfb0538a (diff)
Add script to pull all docker images
Change-Id: Ie4160127335e8cd563ebe52beee7ad6a8807f135 Issue-ID: INT-380 Signed-off-by: Gary Wu <gary.i.wu@huawei.com> (cherry picked from commit c0485097c372ac041ab07a01b96512e10e2c4430)
Diffstat (limited to 'test/ete')
-rwxr-xr-xtest/ete/scripts/pull-docker-images.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/ete/scripts/pull-docker-images.sh b/test/ete/scripts/pull-docker-images.sh
new file mode 100755
index 000000000..e14ee8349
--- /dev/null
+++ b/test/ete/scripts/pull-docker-images.sh
@@ -0,0 +1,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