mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-12 19:42:55 +01:00
make sure operatorsdk binaries are executable and versions configurable
This commit is contained in:
parent
94d18b55c5
commit
f10c6b611c
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue