-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also use buildx instead docker to build image Signed-off-by: Vicente Cheng <[email protected]>
- Loading branch information
1 parent
924c2e1
commit c39d6e4
Showing
4 changed files
with
19 additions
and
9 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 |
---|---|---|
|
@@ -9,11 +9,14 @@ RUN zypper -n rm container-suseconnect && \ | |
## install golangci | ||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.1 | ||
|
||
## install controller-gen | ||
# The docker version in dapper is too old to have buildx. Install it manually. | ||
RUN curl -sSfL https://github.com/docker/buildx/releases/download/v0.13.1/buildx-v0.13.1.linux-${ARCH} -o buildx-v0.13.1.linux-${ARCH} && \ | ||
chmod +x buildx-v0.13.1.linux-${ARCH} && \ | ||
mv buildx-v0.13.1.linux-${ARCH} /usr/local/bin/buildx | ||
|
||
## install controller-gen | ||
RUN go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
|
||
|
||
# install openapi-gen | ||
RUN go install k8s.io/code-generator/cmd/[email protected] | ||
|
||
|
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
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