-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed the iPython and SSL with Tornado issues using GPU. #92
Closed
+35
−5
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
55545db
Fixed some bugs with nividia docker
huangyz0918 d821d7f
Update Dockerfile.gpu
huangyz0918 ad285aa
Update Dockerfile.gpu
huangyz0918 ee0bd16
Update Dockerfile.gpu
huangyz0918 2180a46
Update Dockerfile.gpu
huangyz0918 621115e
Update Dockerfile.gpu
huangyz0918 236888e
Update Dockerfile.gpu
huangyz0918 0794359
Update Dockerfile.gpu
huangyz0918 798bc68
Update Dockerfile.gpu
huangyz0918 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu14.04 | ||
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 | ||
|
||
MAINTAINER Sai Soundararaj <[email protected]> | ||
|
||
|
@@ -10,6 +10,16 @@ ARG LASAGNE_VERSION=v0.1 | |
ARG TORCH_VERSION=latest | ||
ARG CAFFE_VERSION=master | ||
|
||
ARG PYTHON_BASEDEPS="build-essential python-pip" | ||
ARG PYTHON_BUILDDEPS="libbz2-dev \ | ||
libc6-dev \ | ||
libgdbm-dev \ | ||
libncursesw5-dev \ | ||
libreadline-gplv2-dev \ | ||
libsqlite3-dev \ | ||
libssl-dev \ | ||
tk-dev" | ||
|
||
#RUN echo -e "\n**********************\nNVIDIA Driver Version\n**********************\n" && \ | ||
# cat /proc/driver/nvidia/version && \ | ||
# echo -e "\n**********************\nCUDA Version\n**********************\n" && \ | ||
|
@@ -87,6 +97,19 @@ RUN apt-get update && apt-get install -y \ | |
# Link BLAS library to use OpenBLAS using the alternatives mechanism (https://www.scipy.org/scipylib/building/linux.html#debian-ubuntu) | ||
update-alternatives --set libblas.so.3 /usr/lib/openblas-base/libblas.so.3 | ||
|
||
# Fix the SSL issue | ||
ARG PYTHON_TARFILE="Python-2.7.9.tgz" | ||
ARG PYTHON_TARHOST="https://www.python.org/ftp/python/2.7.9" | ||
ARG PYTHON_SRCDIR="Python-2.7.9" | ||
RUN apt-get update | ||
RUN apt-get install -y ${PYTHON_BASEDEPS} ${PYTHON_BUILDDEPS} | ||
RUN wget "${PYTHON_TARHOST}/${PYTHON_TARFILE}" | ||
RUN tar xvf ${PYTHON_TARFILE} | ||
RUN cd ${PYTHON_SRCDIR} && \ | ||
./configure && \ | ||
make && \ | ||
make install | ||
|
||
# Install pip | ||
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \ | ||
python get-pip.py && \ | ||
|
@@ -106,15 +129,20 @@ RUN apt-get update && apt-get install -y \ | |
python-nose \ | ||
python-h5py \ | ||
python-skimage \ | ||
python-matplotlib \ | ||
python-pandas \ | ||
python-sklearn \ | ||
python-sympy \ | ||
&& \ | ||
python-sympy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a fix for ipython |
||
|
||
RUN apt-get update && apt-get install -y \ | ||
libffi-dev libssl-dev && \ | ||
apt-get clean && \ | ||
apt-get autoremove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
RUN pip install matplotlib \ | ||
ipython | ||
|
||
# Install other useful Python packages using pip | ||
RUN pip --no-cache-dir install --upgrade ipython && \ | ||
pip --no-cache-dir install \ | ||
|
@@ -155,7 +183,9 @@ RUN apt-get update && apt-get install -y \ | |
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Caffe | ||
RUN git clone -b ${CAFFE_VERSION} --depth 1 https://github.com/BVLC/caffe.git /root/caffe && \ | ||
# Use video friendly Caffe instead. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use video friendly caffe. |
||
# The original version: https://github.com/BVLC/caffe.git | ||
RUN git clone -b ${CAFFE_VERSION} --depth 1 https://github.com/CXXT-Projects/video-caffe-patched.git /root/caffe && \ | ||
cd /root/caffe && \ | ||
cat python/requirements.txt | xargs -n1 pip install && \ | ||
mkdir build && cd build && \ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fix for SSL.