Skip to content

Commit f9b01dd

Browse files
committed
Fix #66
1 parent 7fa42c1 commit f9b01dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+410
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ Images of Pytorch version 1.5 and higher include [Pytorch Lightning](https://git
5656

5757
| Tag (OS-based python) | Comment | Dockerfile | Info |
5858
| --------------------- | ------- | ---------- | ---- |
59-
| `pytorch1.7` | CPU-only | [Dockerfile](docker/pytorch1.7/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7) |
60-
| `pytorch1.7-cuda11` | Nvidia Driver >= 450.36.06 | [Dockerfile](docker/pytorch1.7-cuda11/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda11.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda11) |
61-
| `pytorch1.7-cuda102` | Nvidia Driver >= 440.33 | [Dockerfile](docker/pytorch1.7-cuda102/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda102.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda102) |
62-
| `pytorch1.7-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](docker/pytorch1.7-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda101) |
63-
| `pytorch1.7-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](docker/pytorch1.7-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda92) |
59+
| `pytorch1.7.1` | CPU-only | [Dockerfile](docker/pytorch1.7.1/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.1.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7.1) |
60+
| `pytorch1.7.1-cuda11` | Nvidia Driver >= 450.36.06 | [Dockerfile](docker/pytorch1.7.1-cuda11/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.1-cuda11.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7.1-cuda11) |
61+
| `pytorch1.7.1-cuda102` | Nvidia Driver >= 440.33 | [Dockerfile](docker/pytorch1.7.1-cuda102/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.1-cuda102.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7.1-cuda102) |
62+
| `pytorch1.7.1-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](docker/pytorch1.7.1-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.1-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7.1-cuda101) |
63+
| `pytorch1.7.1-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](docker/pytorch1.7.1-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.1-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7.1-cuda92) |
6464
| `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) |
6565
| `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) |
6666
| `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

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141

4242
| Tag (OS-based python) | Comment | Dockerfile | Info |
4343
| --------------------- | ------- | ---------- | ---- |
44+
| `pytorch1.7` | CPU-only | [Dockerfile](pytorch1.7/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7) |
45+
| `pytorch1.7-cuda11` | Nvidia Driver >= 450.36.06 | [Dockerfile](pytorch1.7-cuda11/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda11.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda11) |
46+
| `pytorch1.7-cuda102` | Nvidia Driver >= 440.33 | [Dockerfile](pytorch1.7-cuda102/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda102.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda102) |
47+
| `pytorch1.7-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](pytorch1.7-cuda101/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda101.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda101) |
48+
| `pytorch1.7-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](pytorch1.7-cuda92/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.7-cuda92.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.7-cuda92) |
4449
| `pytorch1.6` | CPU-only | [Dockerfile](pytorch1.6/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/notebooks:pytorch1.6.svg)](https://microbadger.com/images/wqael/notebooks:pytorch1.6) |
4550
| `pytorch1.6-cuda101` | Nvidia Driver >= 418.xx | [Dockerfile](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) |
4651
| `pytorch1.6-cuda92` | Nvidia Driver >= 396.xx | [Dockerfile](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) |
File renamed without changes.
File renamed without changes.
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM wqael/mldock:pytorch1.7.1-cuda101
2+
3+
LABEL description="Jupyter / PyTorch 1.7.1 / 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 pip setuptools wheel
29+
30+
RUN ${PIP} --no-cache-dir install -q -U \
31+
jupyterlab \
32+
matplotlib \
33+
nltk \
34+
opencv-python-headless \
35+
pillow \
36+
pytorch-lightning \
37+
scikit-learn \
38+
scikit-image \
39+
seaborn \
40+
six
41+
42+
# Set up our notebook config.
43+
COPY jupyter_notebook_config.py /root/.jupyter/
44+
45+
# Jupyter has issues with being run directly:
46+
# https://github.com/ipython/ipython/issues/7062
47+
# We just add a little wrapper script.
48+
COPY run_jupyter.sh /
49+
50+
# IPython
51+
EXPOSE 8888
52+
53+
WORKDIR /notebooks
54+
55+
CMD ["/run_jupyter.sh", "--allow-root"]
+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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM wqael/mldock:pytorch1.7.1-cuda102
2+
3+
LABEL description="Jupyter / PyTorch 1.7.1 / Python 3.6 / nvidia/cuda:10.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 pip setuptools wheel
29+
30+
RUN ${PIP} --no-cache-dir install -q -U \
31+
jupyterlab \
32+
matplotlib \
33+
nltk \
34+
opencv-python-headless \
35+
pillow \
36+
pytorch-lightning \
37+
scikit-learn \
38+
scikit-image \
39+
seaborn \
40+
six
41+
42+
# Set up our notebook config.
43+
COPY jupyter_notebook_config.py /root/.jupyter/
44+
45+
# Jupyter has issues with being run directly:
46+
# https://github.com/ipython/ipython/issues/7062
47+
# We just add a little wrapper script.
48+
COPY run_jupyter.sh /
49+
50+
# IPython
51+
EXPOSE 8888
52+
53+
WORKDIR /notebooks
54+
55+
CMD ["/run_jupyter.sh", "--allow-root"]
+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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"

docker/pytorch1.7.1-cuda11/Dockerfile

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM wqael/mldock:pytorch1.7.1-cuda11
2+
3+
LABEL description="Jupyter / PyTorch 1.7.1 / Python 3.6 / nvidia/cuda:11.0-cudnn8-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 pip setuptools wheel
29+
30+
RUN ${PIP} --no-cache-dir install -q -U \
31+
jupyterlab \
32+
matplotlib \
33+
nltk \
34+
opencv-python-headless \
35+
pillow \
36+
pytorch-lightning \
37+
scikit-learn \
38+
scikit-image \
39+
seaborn \
40+
six
41+
42+
# Set up our notebook config.
43+
COPY jupyter_notebook_config.py /root/.jupyter/
44+
45+
# Jupyter has issues with being run directly:
46+
# https://github.com/ipython/ipython/issues/7062
47+
# We just add a little wrapper script.
48+
COPY run_jupyter.sh /
49+
50+
# IPython
51+
EXPOSE 8888
52+
53+
WORKDIR /notebooks
54+
55+
CMD ["/run_jupyter.sh", "--allow-root"]
+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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"

docker/pytorch1.7.1-cuda92/Dockerfile

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM wqael/mldock:pytorch1.7.1-cuda92
2+
3+
LABEL description="Jupyter / PyTorch 1.7.1 / 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 pip setuptools wheel
29+
30+
RUN ${PIP} --no-cache-dir install -q -U \
31+
jupyterlab \
32+
matplotlib \
33+
nltk \
34+
opencv-python-headless \
35+
pillow \
36+
pytorch-lightning \
37+
scikit-learn \
38+
scikit-image \
39+
seaborn \
40+
six
41+
42+
# Set up our notebook config.
43+
COPY jupyter_notebook_config.py /root/.jupyter/
44+
45+
# Jupyter has issues with being run directly:
46+
# https://github.com/ipython/ipython/issues/7062
47+
# We just add a little wrapper script.
48+
COPY run_jupyter.sh /
49+
50+
# IPython
51+
EXPOSE 8888
52+
53+
WORKDIR /notebooks
54+
55+
CMD ["/run_jupyter.sh", "--allow-root"]
+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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
jupyter notebook "$@"

0 commit comments

Comments
 (0)