Fix failing docker build 48/117948/1
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Wed, 17 Feb 2021 12:59:56 +0000 (18:29 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Wed, 17 Feb 2021 13:00:41 +0000 (18:30 +0530)
Docker build is failing while installing
cryptography. Disabling rust solves the
issue

Issue-ID: OPTFRA-908
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I9af528fee652b8d0d80914a6b8b166bbf7b1d1bd

conductor/docker/Dockerfile

index 027f383..167aa11 100644 (file)
@@ -15,7 +15,7 @@
 #
 # -------------------------------------------------------------------------
 
-FROM nexus3.onap.org:10001/onap/integration-python:7.0.1
+FROM nexus3.onap.org:10001/onap/integration-python:8.0.0
 
 
 ARG MVN_ARTIFACT_VERSION
@@ -52,6 +52,8 @@ RUN apk --update add unzip && \
 COPY onap-has-tm/optf-has-conductor-${MVN_ARTIFACT_VERSION}.zip /tmp/optf-has.zip
 RUN unzip -q -o -B /tmp/optf-has.zip -d /opt/has && rm -f /tmp/optf-has.zip
 
+ENV CRYPTOGRAPHY_DONT_BUILD_RUST "1"
+
 #PKG-INFO file must also exists in the conductor folder (i.e. besides and inside the of_has.egg-info folder). The zip file for distro above is missing it
 RUN cp /opt/has/conductor/of_has.egg-info/PKG-INFO /opt/has/conductor
 RUN pip install --no-cache-dir -e /opt/has/conductor