aboutsummaryrefslogtreecommitdiffstats
path: root/smoke-usecases-pythonsdk/docker/Dockerfile
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2023-08-01 10:12:21 +0000
committerMarek SzwaƂkiewicz <marek.szwalkiewicz@external.t-mobile.pl>2023-09-20 15:24:09 +0200
commit814d065348e4d5646be878b0b70a36d9e7a83188 (patch)
tree9b49af491c24c61d98c0463a67ddfc752d036a63 /smoke-usecases-pythonsdk/docker/Dockerfile
parent1d502e98b57debf0fc4c8a1329ba502c13356631 (diff)
[XTESTING] Use Python 3.11 images as a base of xtesting imageslondon
We needs 3.11 version which is not installed on previous base Issue-ID: INT-2222 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I60418e8b634a33f1bebf2425032032718bbbdd2a
Diffstat (limited to 'smoke-usecases-pythonsdk/docker/Dockerfile')
-rw-r--r--smoke-usecases-pythonsdk/docker/Dockerfile9
1 files changed, 4 insertions, 5 deletions
diff --git a/smoke-usecases-pythonsdk/docker/Dockerfile b/smoke-usecases-pythonsdk/docker/Dockerfile
index 08a0373..8de2a1f 100644
--- a/smoke-usecases-pythonsdk/docker/Dockerfile
+++ b/smoke-usecases-pythonsdk/docker/Dockerfile
@@ -1,6 +1,6 @@
ARG PYTHONSDK_VERSION=pythonsdk-release
-FROM opnfv/xtesting:wallaby as pythonsdk-release
+FROM python:3.11-alpine as pythonsdk-release
MAINTAINER Morgan Richomme <morgan.richomme@orange.com>
@@ -9,9 +9,8 @@ ARG ONAPSDK_PYTHON_PATH=/src/onapsdk
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
-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 && \
+RUN apk add --no-cache git && \
+ apk add --no-cache --virtual .build-deps gcc openssl-dev linux-headers musl-dev && \
pip3 install --upgrade pip && \
pip3 install --ignore-installed --no-cache-dir \
git+https://gerrit.onap.org/r/testsuite/pythonsdk-tests@$ONAP_TESTS_TAG && \
@@ -24,5 +23,5 @@ FROM pythonsdk-release as pythonsdk-develop
RUN pip3 install --no-cache-dir git+https://gitlab.com/Orange-OpenSource/lfn/onap/python-onapsdk@develop#onapsdk
FROM ${PYTHONSDK_VERSION} as final
-COPY docker/testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
+COPY docker/testcases.yaml /usr/local/lib/python3.11/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]