blob: 4f88bcbec8c70a24da9fab32674ca2384f71681a [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
22for DOCKER_IMAGE in $(tail -n +2 $WORKSPACE/version-manifest/src/main/resources/docker-manifest.csv | tr ',' ':'); do
23 docker pull $DOCKER_PROXY/$DOCKER_IMAGE
24done