[BOOTSTRAP] Fix docker image build problem 69/117869/2
authorJack Lucas <jflos@sonoris.net>
Tue, 16 Feb 2021 00:19:40 +0000 (19:19 -0500)
committerJack Lucas <jflos@sonoris.net>
Tue, 16 Feb 2021 15:00:19 +0000 (10:00 -0500)
Add installation of the Rust compiler to the Docker image build, to
satisfy a dependency of the "cloudify" command line Python package.

Issue-ID: DCAEGEN2-2628
Signed-off-by: Jack Lucas <jflos@sonoris.net>
Change-Id: Ic3efee5fca1282b2c312aeb7989242046e987c71

Changelog.md
Dockerfile
pom.xml
version.properties

index cf61ecf..4bc1409 100644 (file)
@@ -4,8 +4,12 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## [3.0.2] - 2021-02-15
+### Changed
+- [DCAEGEN2-2628](https://jira.onap.org/browse/DCAEGEN2-2628) - Fix docker image build problem
+
 ## [3.0.1] - 11/02/2021
 ### Changed
        - [DCAEGEN2-2537](https://jira.onap.org/browse/DCAEGEN2-2537) - Upgrade prh.prh-app-server to 1.5.5
        - [DCAEGEN2-2493](https://jira.onap.org/browse/DCAEGEN2-2493) - RCC blueprint updated to use latest k8s plugin & 1.2.3 version (vulnerability fixes)
-       - [DCAEGEN2-2496](https://jira.onap.org/browse/DCAEGEN2-2496) - VES-Mapper blueprint updated to 1.2.0 version (vulnerability fixes) 
+       - [DCAEGEN2-2496](https://jira.onap.org/browse/DCAEGEN2-2496) - VES-Mapper blueprint updated to 1.2.0 version (vulnerability fixes)
index 51c704c..b60863b 100644 (file)
@@ -34,8 +34,15 @@ RUN apk --no-cache add build-base libffi-dev openssl-dev curl bash
 RUN curl -Ssf -L "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64"  > /bin/jq \
 && chmod +x /bin/jq
 
+# Install rust (needed for "cryptography", needed for "cloudify"
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustinstall \
+&& chmod +x /rustinstall \
+&& /rustinstall -y
+
 # Install pip and Cloudify CLI
-RUN pip install cloudify==5.1.1
+RUN source /root/.cargo/env \
+&& pip install --upgrade pip \
+&& pip install cloudify==5.1.1
 
 # Copy scripts
 RUN mkdir scripts
diff --git a/pom.xml b/pom.xml
index 91313a3..74e32ee 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
   <groupId>org.onap.dcaegen2.deployments</groupId>
   <artifactId>k8s-bootstrap-container</artifactId>
   <name>dcaegen2-deployments-k8s-bootstrap-container</name>
-  <version>3.0.1-SNAPSHOT</version>
+  <version>3.0.2-SNAPSHOT</version>
   <url>http://maven.apache.org</url>
   <packaging>pom</packaging>
 
index f79400f..40a0e39 100644 (file)
@@ -1,6 +1,6 @@
-major=2\r
-minor=2\r
-patch=4\r
+major=3\r
+minor=0\r
+patch=2\r
 base_version=${major}.${minor}.${patch}\r
 release_version=${base_version}\r
 snapshot_version=${base_version}-SNAPSHOT\r