blob: 3c25fce7192d07a35c6321644f655a830f4e1ed2 [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
Jack Lucas2df41c82020-03-04 12:40:15 -050045plugins/pgaas-1.2.0-py27-none-linux_x86_64.wgn
Jack Lucasbad77202020-02-03 18:21:29 -050046plugins/dmaap-1.3.5-py27-none-any.wgn
Jack Lucas38a41822020-03-10 11:37:20 -040047plugins/dmaap-1.4.0-py27-none-linux_x86_64.wgn
48plugins/dmaap-1.4.1-py27-none-linux_x86_64.wgn
Jack Lucasbad77202020-02-03 18:21:29 -050049plugins/sshkeyshare-1.0.0-py27-none-any.wgn
Jack Lucas2df41c82020-03-04 12:40:15 -050050plugins/sshkeyshare-1.1.0-py27-none-linux_x86_64.wgn
Jack Lucasbad77202020-02-03 18:21:29 -050051plugins/helm-4.0.0-py27-none-linux_x86_64.wgn
52"
53
54# Copy a set of wagons from a repo
55# $1 -- repo baseURL
56# $2 -- list of paths to wagons in the repo
57function get_wagons {
58 for wagon in $2
59 do
60 target=$(basename ${wagon})
61 curl -Ssf $1/${wagon} > ${DEST}/${target}
62 done
63}
64
65mkdir ${DEST}
66get_wagons $1 "${DCAEPLUGINFILES}"
67get_wagons $2 "${CCSDKPLUGINFILES}"