mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Add operator-sdk to image
This commit is contained in:
parent
3f30a354fa
commit
b576b102a0
1 changed files with 8 additions and 3 deletions
|
|
@ -3,17 +3,22 @@ FROM golang:1.17
|
|||
LABEL maintainer="GitLab Distribution Team" \
|
||||
description="Build base image for the GitLab Operator project."
|
||||
|
||||
ARG KUBEBUILDER_VERSION=2.3.1
|
||||
ARG YQ_VERSION=2.4.1
|
||||
|
||||
RUN go get -u \
|
||||
github.com/onsi/ginkgo/ginkgo \
|
||||
golang.org/x/lint/golint
|
||||
|
||||
ARG KUBEBUILDER_VERSION=2.3.1
|
||||
ARG OPERATOR_SDK_VERSION=1.13.1
|
||||
ARG YQ_VERSION=2.4.1
|
||||
|
||||
RUN curl --retry 6 -Ls 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
|
||||
|
||||
RUN curl --retry 6 -LsO https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATOR_SDK_VERSION}/operator-sdk_linux_amd64 \
|
||||
&& chmod +x operator-sdk_linux_amd64 \
|
||||
&& mv operator-sdk_linux_amd64 /usr/local/bin/operator-sdk
|
||||
|
||||
RUN curl --retry 6 -LsO https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 \
|
||||
&& chmod +x yq_linux_amd64 \
|
||||
&& mv yq_linux_amd64 /usr/local/bin/yq
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue