Skip to content

Commit

Permalink
Merge pull request #1284 from loft-sh/vcluster-cli-image-tools
Browse files Browse the repository at this point in the history
build: add devspace, helm, and kubectl to the vcluster-cli image
  • Loading branch information
Thomas Kosiewski authored Oct 9, 2023
2 parents 97dc882 + 9b42cf4 commit 4358d23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile.cli.release
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
# we use alpine for easier debugging
FROM alpine:3.18

ARG HELM_VERSION="v3.12.3"
ARG TARGETARCH

# Set root path as working directory
WORKDIR /

# Add devspace
RUN wget -O devspace "https://github.com/loft-sh/devspace/releases/latest/download/devspace-linux-${TARGETARCH}" \
&& chmod +x devspace \
&& mv devspace /usr/local/bin/devspace

# Add helm
RUN wget -O helm3.tar.gz "https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz" \
&& tar -zxvf helm3.tar.gz "linux-${TARGETARCH}/helm" \
&& chmod +x "linux-${TARGETARCH}/helm" \
&& mv "linux-${TARGETARCH}/helm" /usr/local/bin/helm \
&& rm helm3.tar.gz \
&& rm -R "linux-${TARGETARCH}"

# Add kubectl
RUN wget -O kubectl https://storage.googleapis.com/kubernetes-release/release/`wget -q -O- https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/${TARGETARCH}/kubectl \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl

ENV KUBECONFIG=/root/.kube/config
COPY vcluster /usr/local/bin/vcluster

Expand Down

0 comments on commit 4358d23

Please sign in to comment.