2 #############################################################################
4 # Copyright © 2018 Amdocs.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 #############################################################################
19 # the manifest is manually maintained and does not drive the image tags in values.yaml
26 sudo ./prepull_docker.sh -b casablanca -s nexus.onap.cloud:5000 -v true
28 -b [branch] : branch = master or beijing or amsterdam or csablanca (required)
29 -s [server] : server = IP or DNS name + port (required)
30 -v [true/false] : validate
35 sudo curl https://git.onap.org/integration/plain/version-manifest/src/main/resources/docker-manifest.csv?h=$BRANCH > docker-manifest-$BRANCH.csv
36 # login twice - the first one periodically times out
37 sudo docker login -u docker -p docker $SERVER
38 sudo docker login -u docker -p docker $SERVER
40 # this line from Gary Wu
41 for IMAGE_TAG in $(tail -n +2 docker-manifest-$BRANCH.csv | tr ',' ':'); do
43 echo "$dt: pulling $IMAGE_TAG"
44 sudo docker pull $SERVER/$IMAGE_TAG
49 SERVER=nexus3.onap.org:10001
52 while getopts ":b:s:v" PARAM; do
74 if [[ -z $BRANCH ]]; then
79 prepull $BRANCH $SERVER