-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lyndon-Li <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 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
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM golang:1.17 | ||
FROM golang:1.18 | ||
|
||
ARG GOPROXY | ||
|
||
|
@@ -36,11 +36,11 @@ RUN wget --quiet https://github.com/kubernetes-sigs/kubebuilder/releases/downloa | |
chmod +x /usr/local/kubebuilder/bin/kubebuilder | ||
|
||
# get controller-tools | ||
RUN go get sigs.k8s.io/controller-tools/cmd/[email protected] | ||
RUN go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
|
||
# get goimports (the revision is pinned so we don't indiscriminately update, but the particular commit | ||
# is not important) | ||
RUN go get golang.org/x/tools/cmd/goimports@11e9d9cc0042e6bd10337d4d2c3e5d9295508e7d | ||
RUN go install golang.org/x/tools/cmd/goimports@11e9d9cc0042e6bd10337d4d2c3e5d9295508e7d | ||
|
||
# get protoc compiler and golang plugin | ||
WORKDIR /root | ||
|
@@ -49,7 +49,7 @@ RUN wget --quiet https://github.com/protocolbuffers/protobuf/releases/download/v | |
unzip protoc-3.14.0-linux-x86_64.zip && \ | ||
mv bin/protoc /usr/bin/protoc && \ | ||
chmod +x /usr/bin/protoc | ||
RUN go get github.com/golang/protobuf/[email protected] | ||
RUN go install github.com/golang/protobuf/[email protected] | ||
|
||
# get goreleaser | ||
RUN wget --quiet https://github.com/goreleaser/goreleaser/releases/download/v0.120.8/goreleaser_Linux_x86_64.tar.gz && \ | ||
|
@@ -58,7 +58,7 @@ RUN wget --quiet https://github.com/goreleaser/goreleaser/releases/download/v0.1 | |
chmod +x /usr/bin/goreleaser | ||
|
||
# get golangci-lint | ||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0 | ||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.0 | ||
|
||
# install kubectl | ||
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | ||
|