From cb5dcb3e1bdb103819c3f32fad542636a824556c Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Mon, 4 Mar 2024 13:36:35 +1100 Subject: [PATCH] Update the K8S deb repo to the community repo. Signed-off-by: Caleb Brown --- sandboxes/dynamicanalysis/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sandboxes/dynamicanalysis/Dockerfile b/sandboxes/dynamicanalysis/Dockerfile index 1fbb55ee..bf97d14c 100644 --- a/sandboxes/dynamicanalysis/Dockerfile +++ b/sandboxes/dynamicanalysis/Dockerfile @@ -16,12 +16,14 @@ ENV DEBIAN_FRONTEND noninteractive # Silence 'debconf: delaying package configuation, since apt-utils is not installed' warning # as it related to interactive configuration anyway ENV DEBCONF_NOWARNINGS="yes" +# Define the version of Kubernetes to use. +ENV K8S_VERSION="v1.29" # Define the major version of Node.js to use. ENV NODE_MAJOR=18 # setup repo for kubectl -RUN curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg && \ - echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list +RUN curl -fsSL "https://pkgs.k8s.io/core:/stable:/${K8S_VERSION}/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:/${K8S_VERSION}/deb/ /" > /etc/apt/sources.list.d/kubernetes.list # install repo for nodejs RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/nodesource.gpg && \