Add Operator SDK-related binaries to gitlab-operator-build-base

Changelog: added
This commit is contained in:
Dustin Collins 2021-11-01 11:28:47 -05:00
parent be25b2d5ff
commit 2e7bb81e02
No known key found for this signature in database
GPG key ID: 6A0DAB9E31F49A8F

View file

@ -1,4 +1,4 @@
FROM golang:1.14
FROM golang:1.17
LABEL maintainer="GitLab Distribution Team" \
description="Build base image for the GitLab Operator project."
@ -9,7 +9,7 @@ ARG YQ_VERSION=2.4.1
RUN go get -u \
github.com/onsi/ginkgo/ginkgo \
golang.org/x/lint/golint \
&& curl -L https://go.kubebuilder.io/dl/${KUBEBUILDER_VERSION}/linux/amd64 | tar -xz -C /tmp/ \
&& curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64.tar.gz | tar -xz -C /tmp/ \
&& mv /tmp/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64 /usr/local/kubebuilder \
&& ln -sfv /usr/local/kubebuilder/bin/* /usr/local/bin