Skip to content

Commit

Permalink
Minimal updates to deployment Dockerfile (#188)
Browse files Browse the repository at this point in the history
Upgrade to a supported LTS release of Ubuntu and change the install
source of kubectl for compatibility.
  • Loading branch information
mmcfarland committed Mar 25, 2024
1 parent 11ea608 commit d19c065
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions deployment/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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

Expand Down

0 comments on commit d19c065

Please sign in to comment.