Commit c06769d9 authored by DawnStone's avatar DawnStone Committed by Scott Cyphers

add apt-transport-https for contrib/docker/Dockerfile for GPU on Ubuntu 16.04 (#953)

* workaround to avoid apt-get update error for GPU docker image build on Ubuntu 16.04: The method driver /usr/lib/apt/methods/https could not be found.

* removed extraneous proxy variables from the contrib/docker/Dockerfile for GPU on Ubuntu 16.04
parent 659d2565
...@@ -2,17 +2,23 @@ ...@@ -2,17 +2,23 @@
FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04 FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04
# set the proxies # try to get around issue with badsig
ENV http_proxy=http://proxy-us.intel.com:911 #https://github.com/NVIDIA/nvidia-docker/issues/619 (with devel image) (based on this issue added this)
ENV https_proxy=https://proxy-us.intel.com:911 RUN mv /etc/apt/sources.list.d/cuda.list /tmp/cuda.list
# try to install cudnn-dev packages # removing nvidia-ml.list file to avoid apt-get update error
# RUN apt-get update && install -y libcudnn7-dev && apt-get clean autoclean && apt-get autoremove -y # "The method driver /usr/lib/apt/methods/https could not be found."
RUN apt-get update && apt-get install -y sudo curl && \ RUN mv /etc/apt/sources.list.d/nvidia-ml.list /tmp/nvidia-ml.list
RUN apt-get update && \
apt-get install -y sudo curl apt-transport-https && \
apt-get clean autoclean && \ apt-get clean autoclean && \
apt-get autoremove -y apt-get autoremove -y
RUN curl http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY | sudo apt-key add - RUN curl http://developer.download.nvidia.com/compute/cuda/repos/GPGKEY | sudo apt-key add -
RUN mv /tmp/cuda.list /etc/apt/sources.list.d/cuda.list
RUN mv /tmp/nvidia-ml.list /etc/apt/sources.list.d/nvidia-ml.list
# install standard python 2 and 3 environment stuff # install standard python 2 and 3 environment stuff
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y python-dev python-pip software-properties-common && \ apt-get install -y python-dev python-pip software-properties-common && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment