summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: b8b504b0f0055dc7c1c12b302f7f851dc954f539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM opnfv/functest-core

ARG BRANCH=master
ARG K8S_TAG=v1.7.3

RUN apk --no-cache add --update make bash go \
        grep rsync linux-headers musl-dev findutils && \
    git clone https://github.com/kubernetes/kubernetes /src/k8s.io/kubernetes && \
    (cd /src/k8s.io/kubernetes && git checkout $K8S_TAG) && \
    (cd /src/k8s.io/kubernetes && \
        make kubectl ginkgo && \
        make WHAT=test/e2e/e2e.test) && \
    git clone https://gerrit.opnfv.org/gerrit/functest-kubernetes /src/functest-kubernetes && \
    (cd /src/functest-kubernetes && git fetch origin $BRANCH && git checkout FETCH_HEAD) && \
    pip install /src/functest-kubernetes && \
    rm -rf /src/k8s.io/kubernetes/.git /src/functest-kubernetes
COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]