Skip to content

Commit 4e7877a

Browse files
committed
Fix #11
1 parent 7300a44 commit 4e7877a

File tree

5 files changed

+89
-0
lines changed

5 files changed

+89
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ For docker images based ones in this repo, see [https://github.com/rlan/mldock](
3636

3737
| Tag | Comment | Dockerfile | Info |
3838
| ----- | ------- | ---------- | ---- |
39+
| `py3.8` | CPU-only | [Dockerfile](py3.8/Dockerfile) | ![](https://img.shields.io/docker/image-size/wqael/docker/py3.8) |
3940
| `py36` | CPU-only | [Dockerfile](py36/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/docker:py36.svg) ![](https://images.microbadger.com/badges/commit/wqael/docker:py36.svg)](https://microbadger.com/images/wqael/docker:py36) |
4041
| `py3` | CPU-only | [Dockerfile](py3/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/docker:py3.svg) ![](https://images.microbadger.com/badges/commit/wqael/docker:py3.svg)](https://microbadger.com/images/wqael/docker:py3) |
4142
| `py2` | CPU-only | [Dockerfile](py2/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/docker:py2.svg) ![](https://images.microbadger.com/badges/commit/wqael/docker:py2.svg)](https://microbadger.com/images/wqael/docker:py2) |
43+
| `py3.8-cuda11.3.1` | Nvidia Driver >= 465.19.01 (Linux) 465.89 (Windows) | [Dockerfile](py3.8-cuda11.3.1/Dockerfile) | ![](https://img.shields.io/docker/image-size/wqael/docker/py3.8-cuda11.3.1) |
44+
| `py3.8-cuda10.2` | Nvidia Driver >= 440.33 (Linux) 441.22 (Windows) | [Dockerfile](py3.8-cuda10.2/Dockerfile) | ![](https://img.shields.io/docker/image-size/wqael/docker/py3.8-cuda10.2) |
4245
| `py3.6.9-cuda11.1.1` | NVIDIA driver >= 455.32 | [Dockerfile](py3.6.9-cuda11.1.1/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/docker:py3.6.9-cuda11.1.1.svg) ![](https://images.microbadger.com/badges/commit/wqael/docker:py3.6.9-cuda11.1.1.svg)](https://microbadger.com/images/wqael/docker:py3.6.9-cuda11.1.1) |
4346
| `py36-cuda11` | NVIDIA driver >= 450.36.06 | [Dockerfile](py36-cuda11/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/docker:py36-cuda11.svg) ![](https://images.microbadger.com/badges/commit/wqael/docker:py36-cuda11.svg)](https://microbadger.com/images/wqael/docker:py36-cuda11) |
4447
| `py36-cuda102` | NVIDIA driver >= 440.33 | [Dockerfile](py36-cuda102/Dockerfile) | [![](https://images.microbadger.com/badges/image/wqael/docker:py36-cuda102.svg) ![](https://images.microbadger.com/badges/commit/wqael/docker:py36-cuda102.svg)](https://microbadger.com/images/wqael/docker:py36-cuda102) |

py3.8-cuda10.2/Dockerfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
FROM nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04
2+
3+
LABEL description="Python 3.8.12 / nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04" \
4+
maintainer="https://github.com/rlan/docker"
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/docker" \
14+
org.label-schema.version=$VERSION \
15+
org.label-schema.schema-version="1.0"
16+
17+
18+
# See http://bugs.python.org/issue19846
19+
ENV LANG C.UTF-8
20+
21+
22+
# Install python and tools
23+
RUN apt-get update \
24+
&& apt-get install -y software-properties-common wget \
25+
&& add-apt-repository --yes ppa:deadsnakes/ppa \
26+
&& apt-get update \
27+
&& apt-get install -y python3.8 python3.8-distutils \
28+
&& apt-get -qq clean \
29+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
30+
31+
# download and run the pip3 bootstrap script
32+
RUN cd /tmp \
33+
&& wget --quiet https://bootstrap.pypa.io/get-pip.py \
34+
&& python3.8 /tmp/get-pip.py \
35+
&& rm -rf /tmp/*
36+
37+
# Update python tools
38+
RUN python3.8 -m pip install -q --upgrade pip setuptools wheel
39+
40+
# Make python 3 default
41+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 100

py3.8-cuda10.2/hooks/build

Lines changed: 5 additions & 0 deletions
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 .

py3.8/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM ubuntu:20.04
2+
3+
LABEL description="Python 3.8 / ubuntu:20.04" \
4+
maintainer="https://github.com/rlan/docker"
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/docker" \
14+
org.label-schema.version=$VERSION \
15+
org.label-schema.schema-version="1.0"
16+
17+
18+
ARG PYTHON=python3
19+
ARG PIP=pip3
20+
21+
# See http://bugs.python.org/issue19846
22+
ENV LANG C.UTF-8
23+
24+
# Install python and tools
25+
RUN apt-get update && apt-get install -y \
26+
${PYTHON} \
27+
${PYTHON}-pip \
28+
&& apt-get -qq clean \
29+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
30+
31+
# Update python tools
32+
RUN ${PIP} --no-cache-dir install -q --upgrade pip setuptools wheel
33+
34+
# Make python 3 default
35+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100

py3.8/hooks/build

Lines changed: 5 additions & 0 deletions
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 .

0 commit comments

Comments
 (0)