1 FROM opnfv/functest-kubernetes-core
5 RUN apk --no-cache add --update make bash git \
6 grep rsync linux-headers musl-dev findutils \
7 libffi openssl libjpeg-turbo && \
8 apk --no-cache add --virtual .build-deps --update \
9 gcc python3-dev libffi-dev openssl-dev libjpeg-turbo-dev && \
10 git init /src/k8s.io/kubernetes && \
11 (cd /src/k8s.io/kubernetes && \
12 git fetch --tags https://github.com/kubernetes/kubernetes $K8S_TAG && \
13 git checkout FETCH_HEAD && \
14 make kubectl ginkgo && \
15 make WHAT=test/e2e/e2e.test && \
16 mv _output/bin/* /usr/local/bin) && \
17 rm -r /src/k8s.io/kubernetes/.git /src/k8s.io/kubernetes/_output && \
19 COPY testcases.yaml /usr/lib/python3.6/site-packages/xtesting/ci/testcases.yaml
20 CMD ["run_tests", "-t", "all"]