Update plugin versions 10/100210/1 1.7.0
authorJack Lucas <jflucas@research.att.com>
Fri, 10 Jan 2020 19:14:33 +0000 (14:14 -0500)
committerJack Lucas <jflucas@research.att.com>
Fri, 10 Jan 2020 19:14:33 +0000 (14:14 -0500)
Also improve error detection during curl downloads

Issue-ID: DCAEGEN2-2018
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: I583a0366e9d20afe1d2a038b9b96331e7cad6804

k8s-bootstrap-container/Dockerfile-template
k8s-bootstrap-container/load-blueprints.sh
k8s-bootstrap-container/load-plugins.sh
k8s-bootstrap-container/pom.xml

index 358f59b..583de52 100644 (file)
@@ -32,13 +32,13 @@ RUN yum install -y unzip \
   && mkdir -p /opt/consul/bin \
   && mkdir -p /opt/consul/data \
   && mkdir -p /opt/consul/config \
-  && curl -Ss https://releases.hashicorp.com/consul/1.2.1/consul_1.2.1_linux_amd64.zip > /tmp/consul.zip \
+  && curl -Ssf https://releases.hashicorp.com/consul/1.2.1/consul_1.2.1_linux_amd64.zip > /tmp/consul.zip \
   && unzip -pj /tmp/consul.zip > /opt/consul/bin/consul \
   && chmod +x /opt/consul/bin/consul
 COPY 00-consul.json /opt/consul/config/
 
 # Install jq
-RUN curl -Ss -L "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64"  > /bin/jq \
+RUN curl -Ssf -L "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64"  > /bin/jq \
 && chmod +x /bin/jq
 
 # Install pip and Cloudify CLI (stay at version 4.2 because of changes in higher versions)
index 6a573c4..0947c7e 100755 (executable)
@@ -19,6 +19,7 @@
 # Expect blueprints to be at <base URL>/blueprints
 
 set -x
+set -e
 
 BLUEPRINTS=\
 "
@@ -40,5 +41,5 @@ mkdir ${BPDEST}
 # Download blueprints
 for bp in ${BLUEPRINTS}
 do
-    curl -Ss $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp})
+    curl -Ssf $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp})
 done
index 70abae9..aa5424d 100755 (executable)
 # (This script runs at Docker image build time)
 #
 set -x
+set -e
 DEST=wagons
 
 # For DCAE, starting in R5, we pull down wagons directly
 DCAEPLUGINFILES=\
 "\
-k8splugin/1.4.13/k8splugin-1.4.13-py27-none-linux_x86_64.wgn
-k8splugin/1.6.0/k8splugin-1.6.0-py27-none-linux_x86_64.wgn
-relationshipplugin/1.0.0/relationshipplugin-1.0.0-py27-none-any.wgn
-clamppolicyplugin/1.0.0/clamppolicyplugin-1.0.0-py27-none-any.wgn
-dcaepolicyplugin/2.3.0/dcaepolicyplugin-2.3.0-py27-none-any.wgn \
+k8splugin/1.7.1/k8splugin-1.7.1-py27-none-linux_x86_64.wgn
+relationshipplugin/1.1.0/relationshipplugin-1.1.0-py27-none-linux_x86_64.wgn
+clamppolicyplugin/1.1.0/clamppolicyplugin-1.1.0-py27-none-linux_x86_64.wgn
+dcaepolicyplugin/2.4.0/dcaepolicyplugin-2.4.0-py27-none-linux_x86_64.wgn \
 "
 
 # For CCSDK, we pull down the wagon files directly
@@ -53,7 +53,7 @@ function get_wagons {
        for wagon in $2
        do
                target=$(basename ${wagon})
-               curl -Ss $1/${wagon} > ${DEST}/${target}
+               curl -Ssf $1/${wagon} > ${DEST}/${target}
        done
 }
 
index 3150dd8..1adaa7b 100644 (file)
@@ -27,7 +27,7 @@ limitations under the License.
   <groupId>org.onap.dcaegen2.deployments</groupId>
   <artifactId>k8s-bootstrap-container</artifactId>
   <name>dcaegen2-deployments-k8s-bootstrap-container</name>
-  <version>1.6.5</version>
+  <version>1.7.0</version>
   <url>http://maven.apache.org</url>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>