Skip to content

Commit

Permalink
Using apt-key with key server with key fingerprints
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed Nov 12, 2015
1 parent 0bdc308 commit 2000a09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions ubuntu-14.04/cuda/7.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM ubuntu:14.04
MAINTAINER NVIDIA CORPORATION <digits@nvidia.com>

RUN apt-get update && apt-get install -y wget
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 889BEE522DA690103C4B085ED88C3D385C37D3BE

RUN wget -q -O - http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY | apt-key add - && \
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
RUN echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
apt-get update

ENV CUDA_VERSION 7.0
Expand Down
5 changes: 2 additions & 3 deletions ubuntu-14.04/cuda/7.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM ubuntu:14.04
MAINTAINER NVIDIA CORPORATION <digits@nvidia.com>

RUN apt-get update && apt-get install -y wget
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 889BEE522DA690103C4B085ED88C3D385C37D3BE

RUN wget -q -O - http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY | apt-key add - && \
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
RUN echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
apt-get update

ENV CUDA_VERSION 7.5
Expand Down

1 comment on commit 2000a09

@3XX0
Copy link

@3XX0 3XX0 commented on 2000a09 Nov 12, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relying on NVIDIA servers to provide the GPG key is the official way of installing CUDA.
We might reissue the key at any moment without first notifying public keyservers.

Please sign in to comment.