aboutsummaryrefslogtreecommitdiffstats
path: root/docker/healthcheck
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-09-20 04:19:37 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-09-20 05:20:31 +0200
commit642742e80bbf2427657521f7cd3c299efa6e0782 (patch)
tree5a3a5de37759b52f2dab11f5ed5d9b9da64496ec /docker/healthcheck
parenta9faa59024b8fa8ae48baae109a0f4478a70297b (diff)
Switch to py3.6 in containers
Functest Kubernetes has supported both py2 and py3. py3 is now selected due to the OPNFV Iruya planning closed to python2 EOL. Change-Id: I62a142b658e6d478021038a36138ce00ea4bced8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/healthcheck')
-rw-r--r--docker/healthcheck/Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/healthcheck/Dockerfile b/docker/healthcheck/Dockerfile
index c12913be..ef39a522 100644
--- a/docker/healthcheck/Dockerfile
+++ b/docker/healthcheck/Dockerfile
@@ -2,11 +2,11 @@ FROM opnfv/functest-kubernetes-core:iruya
ARG K8S_TAG=v1.15.1
-RUN apk --no-cache add --update make py-pip bash git \
+RUN apk --no-cache add --update make py3-pip bash git \
grep rsync linux-headers musl-dev findutils \
libffi openssl libjpeg-turbo && \
apk --no-cache add --virtual .build-deps --update \
- gcc python-dev libffi-dev openssl-dev libjpeg-turbo-dev && \
+ gcc python3-dev libffi-dev openssl-dev libjpeg-turbo-dev && \
git init /src/k8s.io/kubernetes && \
(cd /src/k8s.io/kubernetes && \
git fetch --tags https://github.com/kubernetes/kubernetes $K8S_TAG && \
@@ -16,5 +16,5 @@ RUN apk --no-cache add --update make py-pip bash git \
mv _output/bin/* /usr/local/bin) && \
rm -r /src/k8s.io && \
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"]