diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2023-08-01 10:12:21 +0000 |
---|---|---|
committer | Marek SzwaĆkiewicz <marek.szwalkiewicz@external.t-mobile.pl> | 2023-09-20 15:24:09 +0200 |
commit | 814d065348e4d5646be878b0b70a36d9e7a83188 (patch) | |
tree | 9b49af491c24c61d98c0463a67ddfc752d036a63 /infra-healthcheck/docker | |
parent | 1d502e98b57debf0fc4c8a1329ba502c13356631 (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 'infra-healthcheck/docker')
-rw-r--r-- | infra-healthcheck/docker/Dockerfile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/infra-healthcheck/docker/Dockerfile b/infra-healthcheck/docker/Dockerfile index 9cab01d..311edf7 100644 --- a/infra-healthcheck/docker/Dockerfile +++ b/infra-healthcheck/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM opnfv/xtesting:wallaby +FROM python:3.11-alpine ARG KUBERNETES_VERSION="v1.19.11" ARG HELM_VERSION="v2.16.6" @@ -18,7 +18,7 @@ ADD https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSI COPY . . RUN set -x && \ - apk --no-cache add --update curl ca-certificates && \ + apk --no-cache add --update git curl ca-certificates && \ apk --no-cache add --virtual .build-deps --update \ gcc python3-dev musl-dev openssl-dev libffi-dev && \ chmod +x /usr/local/bin/kubectl && \ @@ -28,17 +28,16 @@ RUN set -x && \ wget -O /check_for_ingress_and_nodeports.py https://git.onap.org/integration/plain/test/security/check_for_ingress_and_nodeports.py?h=$ONAP_TAG &&\ chmod +x /usr/local/bin/helm && \ chmod +x /usr/local/bin/helm3 && \ - rm -rf /usr/lib/python3.8/site-packages/PyYAML* && \ + rm -rf /usr/local/lib/python3.11/site-packages/PyYAML* && \ pip3 install --upgrade pip && \ - pip3 install --no-cache-dir -r requirements.txt -c upper-constraints.txt && \ - pip3 install --no-cache-dir -e . && \ - pip3 install --no-cache-dir \ - git+https://git.onap.org/integration.git@$ONAP_TESTS_TAG#subdirectory=test/security/check_certificates && \ pip3 install --ignore-installed --no-cache-dir \ - git+https://git.onap.org/testsuite/pythonsdk-tests.git@$ONAP_TESTS_TAG && \ + -r requirements.txt -c upper-constraints.txt \ + -e . \ + git+https://git.onap.org/testsuite/pythonsdk-tests.git@$ONAP_TESTS_TAG \ + git+https://git.onap.org/integration.git@$ONAP_TAG#subdirectory=test/security/check_certificates && \ apk del .build-deps -COPY docker/testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml -COPY docker/logging.ini /usr/lib/python3.8/site-packages/xtesting/ci/logging.ini -COPY docker/logging.debug.ini /usr/lib/python3.8/site-packages/xtesting/ci/logging.debug.ini +COPY docker/testcases.yaml /usr/local/lib/python3.11/site-packages/xtesting/ci/testcases.yaml +COPY docker/logging.ini /usr/local/lib/python3.11/site-packages/xtesting/ci/logging.ini +COPY docker/logging.debug.ini /usr/local/lib/python3.11/site-packages/xtesting/ci/logging.debug.ini CMD ["run_tests", "-t", "all"] |