From d19c065bf12da3da083c6a1f3786dc7aab4fc8df Mon Sep 17 00:00:00 2001 From: Matt McFarland Date: Mon, 18 Mar 2024 11:49:10 -0400 Subject: [PATCH] Minimal updates to deployment Dockerfile (#188) Upgrade to a supported LTS release of Ubuntu and change the install source of kubectl for compatibility. --- deployment/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deployment/Dockerfile b/deployment/Dockerfile index d77afd15..301f62ca 100644 --- a/deployment/Dockerfile +++ b/deployment/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:20.04 RUN apt-get update --fix-missing RUN apt-get install -y wget unzip curl gnupg \ @@ -23,10 +23,9 @@ RUN mv terraform /usr/local/bin # Install kubectl -RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - -RUN echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list -RUN apt-get update -RUN apt-get install -y kubectl +RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + # Install Helm