|
1 | | -FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 |
2 | | -# Contributors: Syed Navaid (https://github.com/syedahmad) |
3 | | -# Vlad Hosu (https://github.com/subpic) |
4 | | - |
5 | | -RUN apt-get update && apt-get install -y \ |
6 | | -wget \ |
7 | | -vim \ |
8 | | -bzip2 \ |
9 | | -graphviz \ |
10 | | -mc \ |
11 | | -htop \ |
12 | | -emacs-nox \ |
13 | | -rsync \ |
14 | | -less \ |
15 | | -curl \ |
16 | | -#software-properties-common \ |
17 | | -build-essential \ |
18 | | - libfreetype6-dev \ |
19 | | - libpng12-dev \ |
20 | | - openssh-client |
21 | | - |
22 | | -RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash |
23 | | - |
24 | | -#Downgrade CUDA, TF issue: https://github.com/tensorflow/tensorflow/issues/17566#issuecomment-372490062 |
25 | | -RUN apt-get install --allow-downgrades --allow-change-held-packages -y libcudnn7=7.0.5.15-1+cuda9.0 git-lfs |
26 | | - |
27 | | -#Install MINICONDA |
28 | | -RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O Miniconda.sh && \ |
29 | | -/bin/bash Miniconda.sh -b -p /opt/conda && \ |
30 | | -rm Miniconda.sh |
31 | | - |
32 | | -ENV PATH /opt/conda/bin:$PATH |
33 | | - |
34 | | -#Install ANACONDA Environment |
35 | | -RUN conda create -y -n jupyter_env python=3.6 nb_conda_kernels py-xgboost-gpu \ |
36 | | -anaconda ipykernel tensorflow-gpu keras-gpu matplotlib numpy scipy pandas \ |
37 | | -Pillow pydot munch scikit-learn && \ |
38 | | -/opt/conda/envs/jupyter_env/bin/pip install jupyter-tensorboard gitless opencv-python && \ |
39 | | -/opt/conda/envs/jupyter_env/bin/python -m ipykernel.kernelspec |
40 | | - |
41 | | -RUN conda create -y -n jupyter_env27 python=2.7 nb_conda_kernels py-xgboost-gpu \ |
42 | | -anaconda ipykernel tensorflow-gpu keras-gpu matplotlib numpy scipy pandas \ |
43 | | -Pillow pydot munch scikit-learn && \ |
44 | | -/opt/conda/envs/jupyter_env27/bin/pip install jupyter-tensorboard gitless opencv-python && \ |
45 | | -/opt/conda/envs/jupyter_env27/bin/python -m ipykernel.kernelspec |
46 | | - |
47 | | -# Install OpenCV |
48 | | -RUN apt-get update && apt-get install -y libopencv-dev && \ |
49 | | - echo 'ln /dev/null /dev/raw1394' >> ~/.bashrc |
50 | | - |
51 | | -RUN set -x \ |
52 | | - && cd /tmp \ |
53 | | - && wget https://github.com/sdg-mit/gitless/releases/download/v0.8.8/gl-v0.8.8-linux-x86_64.tar.gz \ |
54 | | - && tar -C /usr/bin/ -xvf gl-v0.8.8-linux-x86_64.tar.gz --strip-components=1 \ |
55 | | - && rm -f gl-v0.8.8-linux-x86_64.tar.gz |
56 | | - |
57 | | -COPY docker_deps/entrypoint.sh /root/ |
58 | | -COPY configs/jupyter_notebook_config.py /root/.jupyter/ |
59 | | - |
60 | | -RUN chmod +x /root/entrypoint.sh |
61 | | - |
62 | | -ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 |
63 | | -ENV PYTHONPATH='/mnt/home/research/:/mnt/home/:$PYTHONPATH' |
64 | | -ENV PASSWORD unknownknowns |
65 | | -ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:$LD_LIBRARY_PATH |
66 | | - |
67 | | -WORKDIR /mnt/home/ |
68 | | - |
69 | | -# IPython |
70 | | -EXPOSE 8888 6006 |
71 | | - |
72 | | -CMD bash /root/entrypoint.sh |
| 1 | +FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 |
| 2 | +# Contributors: Syed Navaid (https://github.com/syedahmad) |
| 3 | +# Vlad Hosu (https://github.com/subpic) |
| 4 | + |
| 5 | +RUN apt-get update && apt-get install -y \ |
| 6 | +wget \ |
| 7 | +vim \ |
| 8 | +bzip2 \ |
| 9 | +graphviz \ |
| 10 | +mc \ |
| 11 | +htop \ |
| 12 | +emacs-nox \ |
| 13 | +rsync \ |
| 14 | +less \ |
| 15 | +curl \ |
| 16 | +#software-properties-common \ |
| 17 | +build-essential \ |
| 18 | + libfreetype6-dev \ |
| 19 | + libpng12-dev \ |
| 20 | + openssh-client |
| 21 | + |
| 22 | +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash |
| 23 | + |
| 24 | +#Downgrade CUDA, TF issue: https://github.com/tensorflow/tensorflow/issues/17566#issuecomment-372490062 |
| 25 | +RUN apt-get install --allow-downgrades --allow-change-held-packages -y libcudnn7=7.0.5.15-1+cuda9.0 git-lfs |
| 26 | + |
| 27 | +#Install MINICONDA |
| 28 | +RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O Miniconda.sh && \ |
| 29 | +/bin/bash Miniconda.sh -b -p /opt/conda && \ |
| 30 | +rm Miniconda.sh |
| 31 | + |
| 32 | +ENV PATH /opt/conda/bin:$PATH |
| 33 | + |
| 34 | +#Install ANACONDA Environment |
| 35 | +RUN conda create -y -n jupyter_env python=3.6 nb_conda_kernels py-xgboost-gpu \ |
| 36 | +anaconda ipykernel tensorflow-gpu keras-gpu matplotlib numpy scipy pandas \ |
| 37 | +Pillow pydot munch scikit-learn && \ |
| 38 | +/opt/conda/envs/jupyter_env/bin/pip install jupyter-tensorboard gitless opencv-python && \ |
| 39 | +/opt/conda/envs/jupyter_env/bin/python -m ipykernel.kernelspec |
| 40 | + |
| 41 | +RUN conda create -y -n jupyter_env27 python=2.7 nb_conda_kernels py-xgboost-gpu \ |
| 42 | +anaconda ipykernel tensorflow-gpu keras-gpu matplotlib numpy scipy pandas \ |
| 43 | +Pillow pydot munch scikit-learn && \ |
| 44 | +/opt/conda/envs/jupyter_env27/bin/pip install jupyter-tensorboard gitless opencv-python && \ |
| 45 | +/opt/conda/envs/jupyter_env27/bin/python -m ipykernel.kernelspec |
| 46 | + |
| 47 | +# Install OpenCV |
| 48 | +RUN apt-get update && apt-get install -y libopencv-dev && \ |
| 49 | + echo 'ln /dev/null /dev/raw1394' >> ~/.bashrc |
| 50 | + |
| 51 | +RUN set -x \ |
| 52 | + && cd /tmp \ |
| 53 | + && wget https://github.com/sdg-mit/gitless/releases/download/v0.8.8/gl-v0.8.8-linux-x86_64.tar.gz \ |
| 54 | + && tar -C /usr/bin/ -xvf gl-v0.8.8-linux-x86_64.tar.gz --strip-components=1 \ |
| 55 | + && rm -f gl-v0.8.8-linux-x86_64.tar.gz |
| 56 | + |
| 57 | +COPY docker_deps/entrypoint.sh /root/ |
| 58 | +COPY configs/jupyter_notebook_config.py /root/.jupyter/ |
| 59 | + |
| 60 | +RUN chmod +x /root/entrypoint.sh |
| 61 | + |
| 62 | +ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 |
| 63 | +ENV PYTHONPATH='/mnt/home/research/:/mnt/home/:$PYTHONPATH' |
| 64 | +ENV PASSWORD unknownknowns |
| 65 | +ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:$LD_LIBRARY_PATH |
| 66 | + |
| 67 | +WORKDIR /mnt/home/ |
| 68 | + |
| 69 | +# IPython |
| 70 | +EXPOSE 8888 6006 |
| 71 | + |
| 72 | +CMD bash /root/entrypoint.sh |
0 commit comments