From 1e60f1ba10e633bff5548676e5bb46964f8414f1 Mon Sep 17 00:00:00 2001 From: Mitchell Nielsen Date: Thu, 19 Oct 2023 15:58:20 +0000 Subject: [PATCH] Charts build image: Add 'vcluster' binary --- Dockerfile.gitlab-charts-build-base-helm-3.7 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile.gitlab-charts-build-base-helm-3.7 b/Dockerfile.gitlab-charts-build-base-helm-3.7 index dc3fa12..36f6935 100644 --- a/Dockerfile.gitlab-charts-build-base-helm-3.7 +++ b/Dockerfile.gitlab-charts-build-base-helm-3.7 @@ -9,6 +9,9 @@ ENV HELM_HOME=/root/.helm ENV KUBECTL_VERSION=1.20.15 ENV KUBECTL_URL=https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl +ENV VCLUSTER_VERSION=0.16.3 +ENV VCLUSTER_URL=https://github.com/loft-sh/vcluster/releases/download/v${VCLUSTER_VERSION}/vcluster-linux-amd64 + # Install dependencies RUN apk --no-cache add -U openssl curl tar gzip bash ca-certificates git python3 py3-pip groff\ && mkdir -p /opt @@ -35,3 +38,8 @@ RUN mkdir -p $HELM_HOME/plugins && \ # Install aws cli RUN pip3 install awscli + +# Install vcluster +RUN curl -L -o /usr/local/bin/vcluster ${VCLUSTER_URL} \ + && chmod +x /usr/local/bin/vcluster \ + && vcluster version