[PYTHONSDK] Fix pyyaml issue 11/126411/1
authormorganrol <morgan.richomme@orange.com>
Tue, 4 Jan 2022 09:03:04 +0000 (10:03 +0100)
committermorganrol <morgan.richomme@orange.com>
Tue, 4 Jan 2022 09:03:04 +0000 (10:03 +0100)
Due to the introduction of pyyaml in the tox,
the docker build may have issue
Cannot uninstall 'PyYAML'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.

Adding the pip option --ignore-installed avoid any issue

Issue-ID: TEST-377

Signed-off-by: morganrol <morgan.richomme@orange.com>
Change-Id: I85dcc0a08db7998d2cb3407ad91200fba48b1fd6

smoke-usecases-pythonsdk/docker/Dockerfile

index 3a44520..32c0016 100644 (file)
@@ -13,7 +13,7 @@ RUN apk add --no-cache python3 git && \
     apk add --no-cache --virtual .build-deps libffi-dev python3-dev \
         gcc openssl-dev linux-headers musl-dev && \
     pip3 install --upgrade pip && \
-    pip3 install --no-cache-dir \
+    pip3 install --ignore-installed --no-cache-dir \
         git+https://gerrit.onap.org/r/testsuite/pythonsdk-tests@$ONAP_TESTS_TAG && \
     mkdir -p $ONAPSDK_PYTHON_PATH/clamp && \
     wget -O $ONAPSDK_PYTHON_PATH/clamp/schema_details.json https://gitlab.com/Orange-OpenSource/lfn/onap/python-onapsdk/-/raw/develop/src/onapsdk/clamp/schema_details.json && \