blob: 37385dd55f6bded352cd904dccc73cd5a07a4fd7 [file] [log] [blame]
Gary Wuf656edb2018-05-01 14:26:21 -07001#!/bin/bash -x
Gary Wua3fb86f2018-06-04 16:23:54 -07002#
3# Copyright 2018 Huawei Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
Gary Wuf656edb2018-05-01 14:26:21 -070011
12if [ -z "$WORKSPACE" ]; then
13 export WORKSPACE=`git rev-parse --show-toplevel`
14fi
15
16if [ "$#" -ne 1 ]; then
17 echo "Usage: $0 <docker-proxy>"
18 exit 1
19fi
20DOCKER_PROXY=$1
21
Gary Wu4a086ee2018-07-25 11:04:46 -070022for MANIFEST in docker-manifest.csv docker-manifest-staging.csv; do
23 for DOCKER_IMAGE in $(tail -n +2 $WORKSPACE/version-manifest/src/main/resources/$MANIFEST | tr ',' ':'); do
24 docker pull $DOCKER_PROXY/$DOCKER_IMAGE
25 done
Gary Wuf656edb2018-05-01 14:26:21 -070026done