1 FROM opnfv/functest-kubernetes-core:jerma
3 ARG CNF_CONFORMANCE_TAG=v0.7.2-beta1
5 RUN apk --no-cache add --update wget curl libc6-compat && \
6 K8S_TAG=$(curl -s https://storage.googleapis.com/kubernetes-release/release/latest-1.19.txt) && \
7 case $(uname -m) in armv7l) ARCH=arm;; aarch64) ARCH=arm64;; x86_64) ARCH=amd64;; esac && \
8 curl https://storage.googleapis.com/kubernetes-release/release/$K8S_TAG/bin/linux/$ARCH/kubectl \
9 -s --output /usr/local/bin/kubectl && \
10 curl https://github.com/cncf/cnf-conformance/releases/download/$CNF_CONFORMANCE_TAG/cnf-conformance-$(echo $CNF_CONFORMANCE_TAG |cut -d\- -f 1)-$ARCH-static \
11 -Ls --output /usr/local/bin/cnf-conformance && \
12 chmod +x /usr/local/bin/kubectl /usr/local/bin/cnf-conformance && \
13 mkdir -p /src/cnf-conformance && \
14 curl -Ls https://raw.githubusercontent.com/cncf/cnf-conformance/$CNF_CONFORMANCE_TAG/example-cnfs/coredns/cnf-conformance.yml \
15 -s --output /src/cnf-conformance/cnf-conformance.yml && \
16 curl -Ls https://raw.githubusercontent.com/cncf/cnf-conformance/$CNF_CONFORMANCE_TAG/points.yml \
17 -s --output /src/cnf-conformance/points.yml
18 COPY testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
19 CMD ["run_tests", "-t", "all"]