-
Notifications
You must be signed in to change notification settings - Fork 7
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: Carlos Eduardo Arango Gutierrez <[email protected]>
- Loading branch information
1 parent
d285dd7
commit c5d23a0
Showing
2 changed files
with
22 additions
and
6 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,10 +12,18 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
ARG GOLANG_VERSION=x.x | ||
ARG GOLANG_VERSION=x.x.x | ||
ARG GOLANGCI_LINT_VERSION=v1.52.0 | ||
ARG MOQ_VERSION=latest | ||
ARG CONTROLLER_GEN_VERSION=v0.9.2 | ||
ARG CLIENT_GEN_VERSION=v0.26.1 | ||
FROM golang:${GOLANG_VERSION} | ||
|
||
RUN go install github.com/golangci/golangci-lint/cmd/[email protected] \ | ||
&& go install github.com/matryer/moq@latest \ | ||
&& go install sigs.k8s.io/controller-tools/cmd/[email protected] \ | ||
&& go install k8s.io/code-generator/cmd/[email protected] | ||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION} \ | ||
&& go install github.com/matryer/moq@${MOQ_VERSION} \ | ||
&& go install sigs.k8s.io/controller-tools/cmd/controller-gen@${CONTROLLER_GEN_VERSION} \ | ||
&& go install k8s.io/code-generator/cmd/client-gen@${CLIENT_GEN_VERSION} | ||
|
||
# We need to set the /work directory as a safe directory. | ||
# This allows git commands to run in the container. | ||
RUN git config --file=/.gitconfig --add safe.directory /work |