From: krishnaa96 Date: Wed, 17 Feb 2021 12:59:56 +0000 (+0530) Subject: Fix failing docker build X-Git-Tag: 2.1.3~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d14542ee50acfd98548c42f55ec67731ec26e42d;p=optf%2Fhas.git Fix failing docker build Docker build is failing while installing cryptography. Disabling rust solves the issue Issue-ID: OPTFRA-908 Signed-off-by: krishnaa96 Change-Id: I9af528fee652b8d0d80914a6b8b166bbf7b1d1bd --- diff --git a/conductor/docker/Dockerfile b/conductor/docker/Dockerfile index 027f383..167aa11 100644 --- a/conductor/docker/Dockerfile +++ b/conductor/docker/Dockerfile @@ -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