Skip to content

Commit

Permalink
add BAZEL_VERSION env to kubkins image
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Jun 29, 2018
1 parent 568051e commit 796d7cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion images/kubekins-e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ RUN wget -q "https://storage.googleapis.com/golang/${GO_TARBALL}" && \
rm "${GO_TARBALL}"

# install bazel
ARG BAZEL_VERSION
ARG BAZEL_VERSION_ARG
ENV BAZEL_VERSION=${BAZEL_VERSION_ARG}
RUN INSTALLER="bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"; \
wget -q "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${INSTALLER}" && \
chmod +x "${INSTALLER}" && "./${INSTALLER}" && rm "${INSTALLER}"
Expand Down
2 changes: 1 addition & 1 deletion images/kubekins-e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ kubetest:

build: kubetest
@echo Building with go:$(GO) and bazel:$(BAZEL)
docker build --build-arg GO_VERSION=$(GO) --build-arg BAZEL_VERSION=$(BAZEL) --build-arg CFSSL_VERSION=$(CFSSL) --build-arg IMAGE_ARG=$(IMG):$(TAG)-$(K8S) -t $(IMG):$(TAG)-$(K8S) .
docker build --build-arg GO_VERSION=$(GO) --build-arg BAZEL_VERSION_ARG=$(BAZEL) --build-arg CFSSL_VERSION=$(CFSSL) --build-arg IMAGE_ARG=$(IMG):$(TAG)-$(K8S) -t $(IMG):$(TAG)-$(K8S) .
docker tag $(IMG):$(TAG)-$(K8S) $(IMG):latest-$(K8S)
rm kubetest
@echo Built $(IMG):$(TAG)-$(K8S) and tagged with latest-$(K8S)
Expand Down

0 comments on commit 796d7cd

Please sign in to comment.