Skip to content

Commit

Permalink
Add kubectl and helm to container so it can execute k8s commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocabanas committed Jan 28, 2025
1 parent cb344de commit 58609f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ci-runner-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ ENV PATH=$PATH:/usr/local/go/bin
RUN apt-get install -y gnupg software-properties-common
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
RUN add-apt-repository --yes --update "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" \
&& apt install -y terraform
&& apt install -y terraform \

# add kubectl and helm
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl \
&& curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 \
&& chmod +x get_helm.sh && ./get_helm.sh



# Requirements to manage EC2 instances using SSM
Expand Down

0 comments on commit 58609f4

Please sign in to comment.