From f52a6b0b8eae817ee25ecb5017f1392844212721 Mon Sep 17 00:00:00 2001 From: ad-daniel Date: Mon, 9 May 2022 14:43:15 +0200 Subject: [PATCH 1/4] Fix nvidia key --- Dockerfile-cuda | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile-cuda b/Dockerfile-cuda index 64d47ea378..000e134775 100644 --- a/Dockerfile-cuda +++ b/Dockerfile-cuda @@ -2,6 +2,11 @@ FROM nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04 ARG branch +# Fix NVIDIA CUDA Linux repository key rotation +RUN apt-key del 7fa2af80 +ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 +RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub + # Install dependencies RUN apt-get update && \ apt-get --yes install git sudo apt-utils From 382b99609c0de687e7e2b7d39e1b70a05aa81290 Mon Sep 17 00:00:00 2001 From: ad-daniel Date: Mon, 9 May 2022 14:47:56 +0200 Subject: [PATCH 2/4] Test if it actually fails --- Dockerfile-cuda | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile-cuda b/Dockerfile-cuda index 000e134775..eac3bb819b 100644 --- a/Dockerfile-cuda +++ b/Dockerfile-cuda @@ -3,9 +3,9 @@ FROM nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04 ARG branch # Fix NVIDIA CUDA Linux repository key rotation -RUN apt-key del 7fa2af80 -ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 -RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub +# RUN apt-key del 7fa2af80 +# ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 +# RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub # Install dependencies RUN apt-get update && \ From 36b120ce06812643db5d352bb6c0dad25f5e9f56 Mon Sep 17 00:00:00 2001 From: ad-daniel Date: Mon, 9 May 2022 14:54:09 +0200 Subject: [PATCH 3/4] Undo --- Dockerfile-cuda | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile-cuda b/Dockerfile-cuda index eac3bb819b..000e134775 100644 --- a/Dockerfile-cuda +++ b/Dockerfile-cuda @@ -3,9 +3,9 @@ FROM nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04 ARG branch # Fix NVIDIA CUDA Linux repository key rotation -# RUN apt-key del 7fa2af80 -# ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 -# RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub +RUN apt-key del 7fa2af80 +ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 +RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub # Install dependencies RUN apt-get update && \ From 70ef20d4363e8f46eb8628c569debfe6944918fa Mon Sep 17 00:00:00 2001 From: ad-daniel Date: Mon, 9 May 2022 15:41:58 +0200 Subject: [PATCH 4/4] Don't delete prior key --- Dockerfile-cuda | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile-cuda b/Dockerfile-cuda index 000e134775..4f436ca59c 100644 --- a/Dockerfile-cuda +++ b/Dockerfile-cuda @@ -3,7 +3,6 @@ FROM nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04 ARG branch # Fix NVIDIA CUDA Linux repository key rotation -RUN apt-key del 7fa2af80 ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub