mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-13 03:52:55 +01:00
add opm and operator-sdk
This commit is contained in:
parent
29f6ad4080
commit
94d18b55c5
1 changed files with 8 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ LABEL maintainer="GitLab Distribution Team" \
|
||||||
ARG KUBEBUILDER_VERSION=2.3.1
|
ARG KUBEBUILDER_VERSION=2.3.1
|
||||||
ARG YQ_VERSION=4.7.0
|
ARG YQ_VERSION=4.7.0
|
||||||
ARG HELM_VERSION=3.5.2
|
ARG HELM_VERSION=3.5.2
|
||||||
|
ARG OPERATORSDK_VERSION=1.13.0
|
||||||
|
|
||||||
RUN apk add --no-cache podman curl make gcc musl-dev git bash coreutils
|
RUN apk add --no-cache podman curl make gcc musl-dev git bash coreutils
|
||||||
RUN go get -u \
|
RUN go get -u \
|
||||||
|
|
@ -51,6 +52,13 @@ RUN curl --retry 6 -Ls "https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.ta
|
||||||
&& chmod +x /tmp/linux-amd64/helm \
|
&& chmod +x /tmp/linux-amd64/helm \
|
||||||
&& mv /tmp/linux-amd64/helm /usr/local/bin/helm
|
&& mv /tmp/linux-amd64/helm /usr/local/bin/helm
|
||||||
|
|
||||||
|
RUN curl -s "https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/opm-linux.tar.gz" \
|
||||||
|
| tar -C /usr/local/bin -xzf -
|
||||||
|
|
||||||
|
RUN curl -o /usr/local/bin/operator-sdk -L \
|
||||||
|
https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATORSDK_VERSION}/operator-sdk_linux_amd64
|
||||||
|
}
|
||||||
|
|
||||||
# Kustomize
|
# Kustomize
|
||||||
COPY --from=kustomize /go/bin/kustomize /usr/local/bin/kustomize
|
COPY --from=kustomize /go/bin/kustomize /usr/local/bin/kustomize
|
||||||
# Controller-gen
|
# Controller-gen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue