Verify the GPGKEY checksum of the CUDA repository

Fixes: #3
This commit is contained in:
Jonathan Calmels 2015-11-12 18:06:51 -08:00
parent 2e66d25c2b
commit 97ccc7e537
2 changed files with 10 additions and 2 deletions

View file

@ -3,7 +3,11 @@ MAINTAINER NVIDIA CORPORATION <digits@nvidia.com>
RUN apt-get update && apt-get install -y wget
RUN wget -q -O - http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY | apt-key add - && \
ENV NVIDIA_GPGKEY_SUM 4e181b4141cf3daca6f68e34d5387499fd093b9632b522329b10ed4d1929d417
RUN wget -q http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY && \
echo "$NVIDIA_GPGKEY_SUM GPGKEY" | sha256sum -c - && \
apt-key add GPGKEY && rm GPGKEY && \
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /" > /etc/apt/sources.list.d/cuda.list
ENV CUDA_VERSION 7.0

View file

@ -3,7 +3,11 @@ MAINTAINER NVIDIA CORPORATION <digits@nvidia.com>
RUN apt-get update && apt-get install -y wget
RUN wget -q -O - http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY | apt-key add - && \
ENV NVIDIA_GPGKEY_SUM 4e181b4141cf3daca6f68e34d5387499fd093b9632b522329b10ed4d1929d417
RUN wget -q http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY && \
echo "$NVIDIA_GPGKEY_SUM GPGKEY" | sha256sum -c - && \
apt-key add GPGKEY && rm GPGKEY && \
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /" > /etc/apt/sources.list.d/cuda.list
ENV CUDA_VERSION 7.5