blob: a6b25ae685fc61319ee065bcbc968e17acffb7b1 [file] [log] [blame]
Jack Lucasbad77202020-02-03 18:21:29 -05001#!/bin/bash
2# ============LICENSE_START=======================================================
3# org.onap.dcae
4# ================================================================================
5# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
6# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END=========================================================
19#
20# ECOMP is a trademark and service mark of AT&T Intellectual Property.
21
22# Pull plugin archives from repos
23# $1 is the DCAE repo URL
24# $2 is the CCSDK repo URL
25# (This script runs at Docker image build time)
26#
27set -x
28set -e
29DEST=wagons
30
31# For DCAE, starting in R5, we pull down wagons directly
32DCAEPLUGINFILES=\
33"\
34k8splugin/1.7.2/k8splugin-1.7.2-py27-none-linux_x86_64.wgn
Jack Lucasa25c9232020-03-02 11:07:31 -050035k8splugin/2.0.0/k8splugin-2.0.0-py27-none-linux_x86_64.wgn
Jack Lucasbad77202020-02-03 18:21:29 -050036relationshipplugin/1.1.0/relationshipplugin-1.1.0-py27-none-linux_x86_64.wgn
37clamppolicyplugin/1.1.0/clamppolicyplugin-1.1.0-py27-none-linux_x86_64.wgn
38dcaepolicyplugin/2.4.0/dcaepolicyplugin-2.4.0-py27-none-linux_x86_64.wgn \
39"
40
41# For CCSDK, we pull down the wagon files directly
42CCSDKPLUGINFILES=\
43"\
44plugins/pgaas-1.1.0-py27-none-any.wgn
45plugins/dmaap-1.3.5-py27-none-any.wgn
46plugins/sshkeyshare-1.0.0-py27-none-any.wgn
47plugins/helm-4.0.0-py27-none-linux_x86_64.wgn
48"
49
50# Copy a set of wagons from a repo
51# $1 -- repo baseURL
52# $2 -- list of paths to wagons in the repo
53function get_wagons {
54 for wagon in $2
55 do
56 target=$(basename ${wagon})
57 curl -Ssf $1/${wagon} > ${DEST}/${target}
58 done
59}
60
61mkdir ${DEST}
62get_wagons $1 "${DCAEPLUGINFILES}"
63get_wagons $2 "${CCSDKPLUGINFILES}"