Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
add kind kubernetes-in-docker for faster codespaces startup
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Jan 11, 2024
1 parent 18ae9c6 commit bf34d62
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ RUN set -ex \
/tmp/* \
&& true

# Install Kind Kubernetes-in-Docker
RUN set -ex \
&& export arch=$(uname -m | awk '{ if ($1 == "x86_64") print "amd64"; else if ($1 == "aarch64" || $1 == "arm64") print "arm64"; else print "unknown" }') \
&& export varVerKind=$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | awk -F '["v,]' '/tag_name/{print $5}') \
&& export varUrlKind="https://github.com/kubernetes-sigs/kind/releases/download/v${varVerKind}/kind-linux-${arch}" \
&& sudo curl --output /usr/bin/kind -L ${varUrlKind} \
&& sudo chmod +x /usr/bin/kind \
&& /usr/bin/kind version \
&& true

# Install pulumi
RUN set -ex \
&& export arch=$(uname -m | awk '{ if ($1 == "x86_64") print "x64"; else if ($1 == "aarch64" || $1 == "arm64") print "arm64"; else print "unknown" }') \
Expand Down

0 comments on commit bf34d62

Please sign in to comment.