Add opm to image

This commit is contained in:
Dustin Collins 2021-11-01 13:23:47 -05:00
parent b576b102a0
commit 35b14e5274
No known key found for this signature in database
GPG key ID: 6A0DAB9E31F49A8F

View file

@ -9,6 +9,7 @@ RUN go get -u \
ARG KUBEBUILDER_VERSION=2.3.1 ARG KUBEBUILDER_VERSION=2.3.1
ARG OPERATOR_SDK_VERSION=1.13.1 ARG OPERATOR_SDK_VERSION=1.13.1
ARG OPM_VERSION=1.19.1
ARG YQ_VERSION=2.4.1 ARG YQ_VERSION=2.4.1
RUN curl --retry 6 -Ls https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64.tar.gz | tar -xz -C /tmp/ \ RUN curl --retry 6 -Ls https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64.tar.gz | tar -xz -C /tmp/ \
@ -19,6 +20,10 @@ RUN curl --retry 6 -LsO https://github.com/operator-framework/operator-sdk/relea
&& chmod +x operator-sdk_linux_amd64 \ && chmod +x operator-sdk_linux_amd64 \
&& mv operator-sdk_linux_amd64 /usr/local/bin/operator-sdk && mv operator-sdk_linux_amd64 /usr/local/bin/operator-sdk
RUN curl --retry 6 -LsO https://github.com/operator-framework/operator-registry/releases/download/v${OPM_VERSION}/linux-amd64-opm \
&& chmod +x linux-amd64-opm \
&& mv linux-amd64-opm /usr/local/bin/opm
RUN curl --retry 6 -LsO https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 \ RUN curl --retry 6 -LsO https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 \
&& chmod +x yq_linux_amd64 \ && chmod +x yq_linux_amd64 \
&& mv yq_linux_amd64 /usr/local/bin/yq && mv yq_linux_amd64 /usr/local/bin/yq