Skip to content

Commit

Permalink
Using apt-get because it's supposedly better for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
xip-niekneuij committed Jun 21, 2024
1 parent f3b49d2 commit dbebb48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM myoung34/github-runner:latest

RUN export LAATSTE_KUBERNETES=$(wget -qO- https://dl.k8s.io/release/stable.txt | awk '{print substr($0, 1, 5)}') && \
apt update && apt upgrade -y && apt install -y apt-transport-https awscli ca-certificates curl git-crypt gnupg jq software-properties-common unzip && \
apt-get update && apt-get upgrade -y && apt-get install -y apt-transport-https awscli ca-certificates curl git-crypt gnupg jq software-properties-common unzip && \
curl -fsSL https://pkgs.k8s.io/core:/stable:/$LAATSTE_KUBERNETES/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \
chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/$LAATSTE_KUBERNETES/deb/ /" | tee /etc/apt/sources.list.d/kubernetes.list && \
Expand All @@ -10,6 +10,6 @@ RUN export LAATSTE_KUBERNETES=$(wget -qO- https://dl.k8s.io/release/stable.txt |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list && \
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list && \
apt update && apt-get install -y helm kubectl terraform && \
apt-get update && apt-get install -y helm kubectl terraform && \
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash && \
apt-get autoremove -y && apt-get clean -y

0 comments on commit dbebb48

Please sign in to comment.