blob: 37385dd55f6bded352cd904dccc73cd5a07a4fd7 [file] [log] [blame]
Gary Wu950a3232019-03-26 13:08:29 -07001#!/bin/bash -x
2#
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#
11
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 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
26done