From 7a51165c86b80ee450604b4cd6e6afa2aa0525f5 Mon Sep 17 00:00:00 2001 From: Pedro Escaleira Date: Tue, 5 Mar 2024 17:56:23 +0000 Subject: [PATCH] Fig bug 2338 for the LCM Dockerfile Change-Id: I80475c34a8d4afbbdaf26bb9e3c85d6a00e0c35b Signed-off-by: escaleira --- docker/LCM/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile index f662d7bd..fbc8ef62 100644 --- a/docker/LCM/Dockerfile +++ b/docker/LCM/Dockerfile @@ -39,9 +39,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ openssh-client=1:8.* # https://kubernetes.io/releases/ -RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \ - && echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \ - && apt-get update && apt-get install -y kubectl=1.23.3-00 +RUN mkdir /etc/apt/keyrings \ + && curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.24/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \ + && echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.24/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list \ + && apt-get update && apt-get install -y kubectl=1.24.17-1.1 RUN curl https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz --output helm-v2.17.0.tar.gz \ && tar -zxvf helm-v2.17.0.tar.gz \ -- 2.25.1