diff --git a/Dockerfile.gitlab-operator-build-base b/Dockerfile.gitlab-operator-build-base index 2c23a35..601803f 100644 --- a/Dockerfile.gitlab-operator-build-base +++ b/Dockerfile.gitlab-operator-build-base @@ -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