From: Pedro Escaleira Date: Tue, 5 Mar 2024 17:56:23 +0000 (+0000) Subject: Fig bug 2338 for the LCM Dockerfile X-Git-Tag: v14.0.2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F14240%2F2;p=osm%2Fdevops.git Fig bug 2338 for the LCM Dockerfile Change-Id: I80475c34a8d4afbbdaf26bb9e3c85d6a00e0c35b Signed-off-by: escaleira (cherry picked from commit 59dbcc60653aa03c6c29fe4e1a1da3e6cbf769aa) Signed-off-by: garciadeblas --- diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile index f4f09d83..b6c21316 100644 --- a/docker/LCM/Dockerfile +++ b/docker/LCM/Dockerfile @@ -42,9 +42,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ && rm -rf /var/lib/apt/lists/* # 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.26.5-00 +RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.26/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.26/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list \ + && apt-get update && apt-get install -y kubectl=1.26.14-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 \