properly build opm

This commit is contained in:
Dmitry Makovey 2021-10-14 09:42:23 -06:00
parent 4956474bf9
commit 822c09d382

View file

@ -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 \