Jack Lucas | bad7720 | 2020-02-03 18:21:29 -0500 | [diff] [blame] | 1 | #!/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 | # |
| 27 | set -x |
| 28 | set -e |
| 29 | DEST=wagons |
| 30 | |
| 31 | # For DCAE, starting in R5, we pull down wagons directly |
| 32 | DCAEPLUGINFILES=\ |
| 33 | "\ |
| 34 | k8splugin/1.7.2/k8splugin-1.7.2-py27-none-linux_x86_64.wgn |
Jack Lucas | a25c923 | 2020-03-02 11:07:31 -0500 | [diff] [blame] | 35 | k8splugin/2.0.0/k8splugin-2.0.0-py27-none-linux_x86_64.wgn |
Jack Lucas | bad7720 | 2020-02-03 18:21:29 -0500 | [diff] [blame] | 36 | relationshipplugin/1.1.0/relationshipplugin-1.1.0-py27-none-linux_x86_64.wgn |
| 37 | clamppolicyplugin/1.1.0/clamppolicyplugin-1.1.0-py27-none-linux_x86_64.wgn |
| 38 | dcaepolicyplugin/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 |
| 42 | CCSDKPLUGINFILES=\ |
| 43 | "\ |
| 44 | plugins/pgaas-1.1.0-py27-none-any.wgn |
Jack Lucas | 2df41c8 | 2020-03-04 12:40:15 -0500 | [diff] [blame] | 45 | plugins/pgaas-1.2.0-py27-none-linux_x86_64.wgn |
Jack Lucas | bad7720 | 2020-02-03 18:21:29 -0500 | [diff] [blame] | 46 | plugins/dmaap-1.3.5-py27-none-any.wgn |
Jack Lucas | 38a4182 | 2020-03-10 11:37:20 -0400 | [diff] [blame^] | 47 | plugins/dmaap-1.4.0-py27-none-linux_x86_64.wgn |
| 48 | plugins/dmaap-1.4.1-py27-none-linux_x86_64.wgn |
Jack Lucas | bad7720 | 2020-02-03 18:21:29 -0500 | [diff] [blame] | 49 | plugins/sshkeyshare-1.0.0-py27-none-any.wgn |
Jack Lucas | 2df41c8 | 2020-03-04 12:40:15 -0500 | [diff] [blame] | 50 | plugins/sshkeyshare-1.1.0-py27-none-linux_x86_64.wgn |
Jack Lucas | bad7720 | 2020-02-03 18:21:29 -0500 | [diff] [blame] | 51 | plugins/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 |
| 57 | function get_wagons { |
| 58 | for wagon in $2 |
| 59 | do |
| 60 | target=$(basename ${wagon}) |
| 61 | curl -Ssf $1/${wagon} > ${DEST}/${target} |
| 62 | done |
| 63 | } |
| 64 | |
| 65 | mkdir ${DEST} |
| 66 | get_wagons $1 "${DCAEPLUGINFILES}" |
| 67 | get_wagons $2 "${CCSDKPLUGINFILES}" |