Update e2e images (#4110)
This commit is contained in:
parent
ee1f36d8df
commit
f63f0457be
7 changed files with 27 additions and 20 deletions
|
|
@ -63,5 +63,17 @@ RUN luarocks install luacheck \
|
|||
RUN go get github.com/onsi/ginkgo/ginkgo \
|
||||
&& go get golang.org/x/lint/golint
|
||||
|
||||
RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.14.1/bin/linux/amd64/kubectl \
|
||||
ARG K8S_RELEASE
|
||||
ARG ETCD_VERSION
|
||||
|
||||
RUN wget https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
|
||||
&& chmod +x /usr/local/bin/kubectl
|
||||
|
||||
RUN wget https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kube-apiserver -O /usr/local/bin/kube-apiserver \
|
||||
&& chmod +x /usr/local/bin/kube-apiserver
|
||||
|
||||
RUN curl -L https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
|
||||
&& mkdir -p /tmp/etcd-download \
|
||||
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-download --strip-components=1 \
|
||||
&& cp /tmp/etcd-download/etcd /usr/local/bin \
|
||||
&& rm -rf /tmp/etcd-download
|
||||
|
|
|
|||
|
|
@ -21,7 +21,13 @@ IMAGE = $(REGISTRY)/e2e
|
|||
all: docker-build docker-push
|
||||
|
||||
docker-build:
|
||||
$(DOCKER) build -t $(IMAGE):$(TAG) .
|
||||
$(DOCKER) build \
|
||||
--pull \
|
||||
--build-arg K8S_RELEASE=v1.14.1 \
|
||||
--build-arg ETCD_VERSION=v3.3.12 \
|
||||
-t $(IMAGE):$(TAG) .
|
||||
|
||||
docker-push:
|
||||
$(DOCKER) push $(IMAGE):$(TAG)
|
||||
$(DOCKER) tag $(IMAGE):$(TAG) $(IMAGE):latest
|
||||
$(DOCKER) push $(IMAGE):latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue