add opm and operator-sdk

This commit is contained in:
Dmytro Makovey 2021-10-07 14:31:06 +00:00
parent 29f6ad4080
commit 94d18b55c5

View file

@ -30,6 +30,7 @@ LABEL maintainer="GitLab Distribution Team" \
ARG KUBEBUILDER_VERSION=2.3.1
ARG YQ_VERSION=4.7.0
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 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 \
&& 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
COPY --from=kustomize /go/bin/kustomize /usr/local/bin/kustomize
# Controller-gen