-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
ARG GOLANG_VERSION=1.10 | ||
ARG GOLANG_VERSION=1.13 | ||
FROM golang:${GOLANG_VERSION} | ||
|
||
|
||
# Download and install Kubebuilder | ||
|
||
# download the release | ||
RUN curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v1.0.8/kubebuilder_1.0.8_linux_amd64.tar.gz | ||
RUN curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.1.0/kubebuilder_2.1.0_linux_amd64.tar.gz | ||
|
||
# extract the archive | ||
RUN tar -zxvf kubebuilder_1.0.8_linux_amd64.tar.gz | ||
RUN mv kubebuilder_1.0.8_linux_amd64 kubebuilder && mv kubebuilder /usr/local/ | ||
RUN tar -zxvf kubebuilder_2.1.0_linux_amd64.tar.gz | ||
RUN mv kubebuilder_2.1.0_linux_amd64 kubebuilder && mv kubebuilder /usr/local/ | ||
|
||
# update your PATH to include /usr/local/kubebuilder/bin | ||
ENV PATH $PATH:/usr/local/kubebuilder/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters