FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use http url for nvidia repo · JasonYangCode/docker-python@ad733ca · GitHub

Commit ad733ca

Browse files
committed
Use http url for nvidia repo
1 parent 7f27fba commit ad733ca

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎gpu.Dockerfile‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BASE_TAG=staging
22

3-
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu16.04 AS nvidia
3+
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 AS nvidia
44
FROM gcr.io/kaggle-images/python-tensorflow-whl:2.1.0-py37 as tensorflow_whl
55
FROM gcr.io/kaggle-images/python:${BASE_TAG}
66

@@ -10,6 +10,8 @@ ADD clean-layer.sh /tmp/clean-layer.sh
1010
COPY --from=nvidia /etc/apt/sources.list.d/cuda.list /etc/apt/sources.list.d/
1111
COPY --from=nvidia /etc/apt/sources.list.d/nvidia-ml.list /etc/apt/sources.list.d/
1212
COPY --from=nvidia /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/cuda.gpg
13+
# errors with SSL certs on new Ubuntu 18.04 even though all certs are present.
14+
RUN sed -i 's/deb https:\/\/developer.download.nvidia.com/deb http:\/\/developer.download.nvidia.com/' /etc/apt/sources.list.d/*.list
1315

1416
# Ensure the cuda libraries are compatible with the custom Tensorflow wheels.
1517
# TODO(b/120050292): Use templating to keep in sync or COPY installed binaries from it.
@@ -30,6 +32,10 @@ ENV LD_LIBRARY_PATH="/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/cu
3032
ENV NVIDIA_VISIBLE_DEVICES=all
3133
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
3234
ENV NVIDIA_REQUIRE_CUDA="cuda>=$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION"
35+
# didn't work:
36+
# RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
37+
# RUN wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add -
38+
# RUN apt-get clean
3339
RUN apt-get update && apt-get install -y --no-install-recommends \
3440
cuda-cupti-$CUDA_PKG_VERSION \
3541
cuda-cudart-$CUDA_PKG_VERSION \

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL