Merge branch 'add-vcluster-to-operator-build-base' into 'master'

Gitlab operator build image: Add 'vcluster' binary

See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/744

Merged-by: Stan Hu <stanhu@gmail.com>
Approved-by: Stan Hu <stanhu@gmail.com>
Co-authored-by: Jon Doveston <jdoveston@gitlab.com>
This commit is contained in:
Stan Hu 2023-11-06 20:43:05 +00:00
commit 522f17e89c

View file

@ -49,6 +49,7 @@ ARG YQ_VERSION=4.7.0
ARG HELM_VERSION=3.5.2
ARG OPERATORSDK_VERSION=1.32.0
ARG TASK_VERSION=3.12.1
ENV VCLUSTER_VERSION=0.16.3
# ARG OPM_VERSION=1.19.0
RUN apk add --no-cache podman buildah curl make gcc musl-dev git bash coreutils
@ -84,6 +85,11 @@ RUN curl --retry 6 -Ls "https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.ta
# Opm
COPY --from=opm /src/operator-registry/bin/opm /usr/local/bin/opm
# vcluster
RUN curl -L -o /usr/local/bin/vcluster \
https://github.com/loft-sh/vcluster/releases/download/v${VCLUSTER_VERSION}/vcluster-linux-amd64 \
&& chmod +x /usr/local/bin/vcluster
# Operator-SDK
RUN curl -o /usr/local/bin/operator-sdk_linux_amd64 -L \
https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATORSDK_VERSION}/operator-sdk_linux_amd64 \