make sure operatorsdk binaries are executable and versions configurable

This commit is contained in:
Dmytro Makovey 2021-10-07 14:35:28 +00:00
parent 94d18b55c5
commit f10c6b611c

View file

@ -31,6 +31,7 @@ ARG KUBEBUILDER_VERSION=2.3.1
ARG YQ_VERSION=4.7.0
ARG HELM_VERSION=3.5.2
ARG OPERATORSDK_VERSION=1.13.0
ARG OPM_VERSION=1.19.0
RUN apk add --no-cache podman curl make gcc musl-dev git bash coreutils
RUN go get -u \
@ -52,12 +53,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/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 curl -o /usr/local/bin/operator-sdk -L \
https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATORSDK_VERSION}/operator-sdk_linux_amd64
}
https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATORSDK_VERSION}/operator-sdk_linux_amd64 \
; chmod +x /usr/local/bin/operator-sdk
# Kustomize
COPY --from=kustomize /go/bin/kustomize /usr/local/bin/kustomize