Skip to content

Commit

Permalink
fix for CUDA Linux Repository Key Rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
spigad authored Jul 7, 2022
1 parent ab7c5f6 commit 9d8095d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docker/single-node-jupyterhub/lab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
ARG BASE_IMAGE="ubuntu:20.04"
FROM ${BASE_IMAGE}

ARG BASE_IMAGE

RUN if [ "$BASE_IMAGE" = "tensorflow/tensorflow:2.7.0rc1-gpu" ] ; then \
rm /etc/apt/sources.list.d/cuda.list \
&& rm /etc/apt/sources.list.d/nvidia-ml.list \
&& apt-key del 7fa2af80 \
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub \
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub \
; else echo 'Ubuntu'; fi

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git software-properties-common wget fuse curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -72,4 +82,4 @@ ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
RUN chmod +x /bin/tini

WORKDIR /jupyter-workspace
WORKDIR /jupyter-workspace

0 comments on commit 9d8095d

Please sign in to comment.