aboutsummaryrefslogtreecommitdiffstats
path: root/docker/features/Dockerfile
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-05-12 12:58:29 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-05-12 15:02:59 +0200
commite38bb1ee4c2a5c2e03ad7af46631da37c5f189ba (patch)
tree77e65b364fa7d50213dd219913664e9fe2c8f486 /docker/features/Dockerfile
parent29f0d544e7f523ec3884e98c892bf4e0b8efd178 (diff)
Update to Python3
Functest containers leverage on Python3 instead of python2. https://mail.python.org/pipermail/python-dev/2018-March/152348.html Change-Id: I4f148e91259377b4e3b9076621f192a6e00f6009 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/features/Dockerfile')
-rw-r--r--docker/features/Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/docker/features/Dockerfile b/docker/features/Dockerfile
index e3b0dcad..e4c60b64 100644
--- a/docker/features/Dockerfile
+++ b/docker/features/Dockerfile
@@ -4,16 +4,16 @@ ARG OPENSTACK_TAG=master
ARG OPNFV_TAG=master
COPY thirdparty-requirements.txt thirdparty-requirements.txt
-RUN apk --no-cache add --update make py-pip bash git go \
+RUN apk --no-cache add --update make bash git go \
grep rsync linux-headers musl-dev findutils \
libffi openssl libjpeg-turbo && \
apk --no-cache add --virtual .build-deps --update \
- python-dev libffi-dev openssl-dev libjpeg-turbo-dev && \
- pip install \
+ python3-dev libffi-dev openssl-dev libjpeg-turbo-dev && \
+ pip3 install \
-chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
-chttps://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt \
-rthirdparty-requirements.txt && \
rm -f thirdparty-requirements.txt && \
apk del .build-deps
-COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
+COPY testcases.yaml /usr/lib/python3.6/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]