From 822c09d3822ae905240d5b13053e9baa8f0ddbd2 Mon Sep 17 00:00:00 2001 From: Dmitry Makovey Date: Thu, 14 Oct 2021 09:42:23 -0600 Subject: [PATCH] properly build opm --- Dockerfile.gitlab-operator-build-base | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile.gitlab-operator-build-base b/Dockerfile.gitlab-operator-build-base index 144b53c..a30ea53 100644 --- a/Dockerfile.gitlab-operator-build-base +++ b/Dockerfile.gitlab-operator-build-base @@ -58,9 +58,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 -o /usr/local/bin/opm -L -s \ - https://github.com/operator-framework/operator-registry/releases/download/v${OPM_VERSION}/linux-amd64-opm \ - ; chmod +x /usr/local/bin/opm +RUN mkdir -p .build \ + && curl -s -L -o .build/operator-registry-${OPM_VERSION}.tgz https://github.com/operator-framework/operator-registry/archive/refs/tags/v${OPM_VERSION}.tar.gz \ + && cd .build \ + && tar -xzf operator-registry-${OPM_VERSION}.tgz \ + && cd operator-registry-${OPM_VERSION} \ + && make bin/opm \ + cp bin/opm /usr/local/bin/opm 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 \