diff options
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 4b9ddd4e..b8b504b0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,6 @@ FROM opnfv/functest-core +ARG BRANCH=master ARG K8S_TAG=v1.7.3 RUN apk --no-cache add --update make bash go \ @@ -9,4 +10,9 @@ RUN apk --no-cache add --update make bash go \ (cd /src/k8s.io/kubernetes && \ make kubectl ginkgo && \ make WHAT=test/e2e/e2e.test) && \ - rm -rf /src/k8s.io/kubernetes/.git + 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"] |