diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-01-12 07:58:52 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-01-12 19:48:40 +0100 |
commit | 7dd4fc8e19c075bd7d50a16e4cd4b4530009ae2c (patch) | |
tree | 051aaf238c4bc386c2577f036fc6ecc6d52cdddb | |
parent | 73e9fafa84a8c0b8452ccfe6f00e72a24b710e4e (diff) |
Build K8s via specific tags/branches
It also removes .git to save space.
Change-Id: I4a4601799266b3ae8771d7453b6df8c90e356004
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | docker/Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index ff66adda..004409ff 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,10 @@ FROM opnfv/functest-core +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 && \ - make WHAT=test/e2e/e2e.test + (cd /src/k8s.io/kubernetes && git checkout $K8S_TAG) && \ + (cd /src/k8s.io/kubernetes && make WHAT=test/e2e/e2e.test) && \ + rm -rf /src/k8s.io/kubernetes/.git |