Skip to content

Commit 6986016

Browse files
committed
Fixes #59. PyTorch 1.6.
1 parent d197cd9 commit 6986016

26 files changed

+249
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ Images of Pytorch version 1.5 and higher include [Pytorch Lightning](https://git
4646

4747
| Tag (OS-based python) | Comment | Dockerfile | Info |
4848
| --------------------- | ------- | ---------- | ---- |
49-
| `pytorch1.5.1` | CPU-only | [Dockerfile](docker/pytorch1.5.1/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.1.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5.1) |
50-
| `pytorch1.5.1-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](docker/pytorch1.5.1-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.1-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5.1-cuda101) |
51-
| `pytorch1.5.1-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](docker/pytorch1.5.1-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.1-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5.1-cuda92) |
49+
| `pytorch1.6` | CPU-only | [Dockerfile](docker/pytorch1.6/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.6.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.6) |
50+
| `pytorch1.6-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](docker/pytorch1.6-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.6-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.6-cuda101) |
51+
| `pytorch1.6-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](docker/pytorch1.6-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.6-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.6-cuda92) |
5252
| `jupyter-pytorch1.2-py3-cuda10` | Nvidia Driver >= 410.xx | [Dockerfile](docker/jupyter-pytorch1.2-py3-cuda10/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:jupyter-pytorch1.2-py3-cuda10.svg)](https://microbadger.com/images/wqael/notebooks:jupyter-pytorch1.2-py3-cuda10) |
5353
| `jupyter-pytorch1.1-py3-cuda9` | Nvidia Driver >= 384.xx | [Dockerfile](docker/jupyter-pytorch1.1-py3-cuda9/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:jupyter-pytorch1.1-py3-cuda9.svg)](https://microbadger.com/images/wqael/notebooks:jupyter-pytorch1.1-py3-cuda9) |
5454
| `jupyter-pytorch1.0-py3-cuda8` | Nvidia Driver >= 375.xx | [Dockerfile](docker/jupyter-pytorch1.0-py3-cuda8/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:jupyter-pytorch1.0-py3-cuda8.svg)](https://microbadger.com/images/wqael/notebooks:jupyter-pytorch1.0-py3-cuda8) |

deprecated/deprecated.md

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636
| Tag (OS-based python) | Comment | Dockerfile | Info |
3737
| --------------------- | ------- | ---------- | ---- |
38+
| `pytorch1.5.1` | CPU-only | [Dockerfile](pytorch1.5.1/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.1.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5.1) |
39+
| `pytorch1.5.1-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](pytorch1.5.1-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.1-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5.1-cuda101) |
40+
| `pytorch1.5.1-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](pytorch1.5.1-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.1-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5.1-cuda92) |
3841
| `pytorch1.5` | CPU-only | [Dockerfile](pytorch1.5/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5) |
3942
| `pytorch1.5-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](pytorch1.5-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5-cuda101) |
4043
| `pytorch1.5-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](pytorch1.5-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.5-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.5-cuda92) |
File renamed without changes.
File renamed without changes.

docker/pytorch1.6-cuda101/Dockerfile

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM wqael/mldock:pytorch1.6-cuda101
2+
3+
LABEL description="Jupyter / PyTorch 1.6.0 / Python 3.6 / nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04" \
4+
maintainer="https://github.com/rlan/notebooks"
5+
6+
7+
# Build-time metadata as defined at http://label-schema.org
8+
ARG BUILD_DATE
9+
ARG VCS_REF
10+
ARG VERSION
11+
LABEL org.label-schema.build-date=$BUILD_DATE \
12+
org.label-schema.vcs-ref=$VCS_REF \
13+
org.label-schema.vcs-url="https://github.com/rlan/notebooks" \
14+
org.label-schema.version=$VERSION \
15+
org.label-schema.schema-version="1.0"
16+
17+
ARG PYTHON=python3
18+
ARG PIP=pip3
19+
# Skips tzdata configuration
20+
ARG DEBIAN_FRONTEND=noninteractive
21+
22+
RUN apt-get -qq update \
23+
&& apt-get -qq install -y --no-install-recommends \
24+
python3-pandas \
25+
&& apt-get -qq clean \
26+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
27+
28+
RUN pip --no-cache-dir install -q --upgrade \
29+
pip \
30+
setuptools \
31+
wheel
32+
RUN ${PIP} --no-cache-dir install -q -U \
33+
jupyterlab \
34+
matplotlib \
35+
opencv-python-headless \
36+
pillow \
37+
pytorch-lightning \
38+
scikit-learn \
39+
scikit-image \
40+
seaborn \
41+
six
42+
43+
# Set up our notebook config.
44+
COPY jupyter_notebook_config.py /root/.jupyter/
45+
46+
# Jupyter has issues with being run directly:
47+
# https://github.com/ipython/ipython/issues/7062
48+
# We just add a little wrapper script.
49+
COPY run_jupyter.sh /
50+
51+
# IPython
52+
EXPOSE 8888
53+
54+
WORKDIR /notebooks
55+
56+
CMD ["/run_jupyter.sh", "--allow-root"]

docker/pytorch1.6-cuda101/hooks/build

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# $IMAGE_NAME var is injected into the build so the tag is correct.
3+
docker build --build-arg VCS_REF=`git rev-parse --short HEAD` \
4+
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
5+
-t $IMAGE_NAME .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import os
2+
from IPython.lib import passwd
3+
4+
c = c # pylint:disable=undefined-variable
5+
c.NotebookApp.ip = '0.0.0.0'
6+
c.NotebookApp.port = int(os.getenv('PORT', 8888))
7+
c.NotebookApp.open_browser = False
8+
9+
# sets a password if PASSWORD is set in the environment
10+
if 'PASSWORD' in os.environ:
11+
password = os.environ['PASSWORD']
12+
if password:
13+
c.NotebookApp.password = passwd(password)
14+
else:
15+
c.NotebookApp.password = ''
16+
c.NotebookApp.token = ''
17+
del os.environ['PASSWORD']
18+
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"

docker/pytorch1.6-cuda92/Dockerfile

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM wqael/mldock:pytorch1.6-cuda92
2+
3+
LABEL description="Jupyter / PyTorch 1.6.0 / Python 3.6 / nvidia/cuda:9.2-cudnn7-runtime-ubuntu18.04" \
4+
maintainer="https://github.com/rlan/notebooks"
5+
6+
7+
# Build-time metadata as defined at http://label-schema.org
8+
ARG BUILD_DATE
9+
ARG VCS_REF
10+
ARG VERSION
11+
LABEL org.label-schema.build-date=$BUILD_DATE \
12+
org.label-schema.vcs-ref=$VCS_REF \
13+
org.label-schema.vcs-url="https://github.com/rlan/notebooks" \
14+
org.label-schema.version=$VERSION \
15+
org.label-schema.schema-version="1.0"
16+
17+
ARG PYTHON=python3
18+
ARG PIP=pip3
19+
# Skips tzdata configuration
20+
ARG DEBIAN_FRONTEND=noninteractive
21+
22+
RUN apt-get -qq update \
23+
&& apt-get -qq install -y --no-install-recommends \
24+
python3-pandas \
25+
&& apt-get -qq clean \
26+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
27+
28+
RUN pip --no-cache-dir install -q --upgrade \
29+
pip \
30+
setuptools \
31+
wheel
32+
RUN ${PIP} --no-cache-dir install -q -U \
33+
jupyterlab \
34+
matplotlib \
35+
opencv-python-headless \
36+
pillow \
37+
pytorch-lightning \
38+
scikit-learn \
39+
scikit-image \
40+
seaborn \
41+
six
42+
43+
# Set up our notebook config.
44+
COPY jupyter_notebook_config.py /root/.jupyter/
45+
46+
# Jupyter has issues with being run directly:
47+
# https://github.com/ipython/ipython/issues/7062
48+
# We just add a little wrapper script.
49+
COPY run_jupyter.sh /
50+
51+
# IPython
52+
EXPOSE 8888
53+
54+
WORKDIR /notebooks
55+
56+
CMD ["/run_jupyter.sh", "--allow-root"]

docker/pytorch1.6-cuda92/hooks/build

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# $IMAGE_NAME var is injected into the build so the tag is correct.
3+
docker build --build-arg VCS_REF=`git rev-parse --short HEAD` \
4+
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
5+
-t $IMAGE_NAME .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import os
2+
from IPython.lib import passwd
3+
4+
c = c # pylint:disable=undefined-variable
5+
c.NotebookApp.ip = '0.0.0.0'
6+
c.NotebookApp.port = int(os.getenv('PORT', 8888))
7+
c.NotebookApp.open_browser = False
8+
9+
# sets a password if PASSWORD is set in the environment
10+
if 'PASSWORD' in os.environ:
11+
password = os.environ['PASSWORD']
12+
if password:
13+
c.NotebookApp.password = passwd(password)
14+
else:
15+
c.NotebookApp.password = ''
16+
c.NotebookApp.token = ''
17+
del os.environ['PASSWORD']
18+
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"

docker/pytorch1.6/Dockerfile

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM wqael/mldock:pytorch1.6
2+
3+
LABEL description="Jupyter / PyTorch 1.6.0 / Python 3.6 / ubuntu18.04" \
4+
maintainer="https://github.com/rlan/notebooks"
5+
6+
7+
# Build-time metadata as defined at http://label-schema.org
8+
ARG BUILD_DATE
9+
ARG VCS_REF
10+
ARG VERSION
11+
LABEL org.label-schema.build-date=$BUILD_DATE \
12+
org.label-schema.vcs-ref=$VCS_REF \
13+
org.label-schema.vcs-url="https://github.com/rlan/notebooks" \
14+
org.label-schema.version=$VERSION \
15+
org.label-schema.schema-version="1.0"
16+
17+
ARG PYTHON=python3
18+
ARG PIP=pip3
19+
# Skips tzdata configuration
20+
ARG DEBIAN_FRONTEND=noninteractive
21+
22+
RUN apt-get -qq update \
23+
&& apt-get -qq install -y --no-install-recommends \
24+
python3-pandas \
25+
&& apt-get -qq clean \
26+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
27+
28+
RUN pip --no-cache-dir install -q --upgrade \
29+
pip \
30+
setuptools \
31+
wheel
32+
RUN ${PIP} --no-cache-dir install -q -U \
33+
jupyterlab \
34+
matplotlib \
35+
opencv-python-headless \
36+
pillow \
37+
pytorch-lightning \
38+
scikit-learn \
39+
scikit-image \
40+
seaborn \
41+
six
42+
43+
# Set up our notebook config.
44+
COPY jupyter_notebook_config.py /root/.jupyter/
45+
46+
# Jupyter has issues with being run directly:
47+
# https://github.com/ipython/ipython/issues/7062
48+
# We just add a little wrapper script.
49+
COPY run_jupyter.sh /
50+
51+
# IPython
52+
EXPOSE 8888
53+
54+
WORKDIR /notebooks
55+
56+
CMD ["/run_jupyter.sh", "--allow-root"]

docker/pytorch1.6/hooks/build

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# $IMAGE_NAME var is injected into the build so the tag is correct.
3+
docker build --build-arg VCS_REF=`git rev-parse --short HEAD` \
4+
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
5+
-t $IMAGE_NAME .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import os
2+
from IPython.lib import passwd
3+
4+
c = c # pylint:disable=undefined-variable
5+
c.NotebookApp.ip = '0.0.0.0'
6+
c.NotebookApp.port = int(os.getenv('PORT', 8888))
7+
c.NotebookApp.open_browser = False
8+
9+
# sets a password if PASSWORD is set in the environment
10+
if 'PASSWORD' in os.environ:
11+
password = os.environ['PASSWORD']
12+
if password:
13+
c.NotebookApp.password = passwd(password)
14+
else:
15+
c.NotebookApp.password = ''
16+
c.NotebookApp.token = ''
17+
del os.environ['PASSWORD']
18+

docker/pytorch1.6/run_jupyter.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"

0 commit comments

Comments
 (0)