Skip to content

Commit 50d7c60

Browse files
authored
Merge pull request docker-library#223 from infosiftr/3.7.0a1
Add 3.7.0a1
2 parents 7d8593c + 4568561 commit 50d7c60

File tree

13 files changed

+455
-13
lines changed

13 files changed

+455
-13
lines changed

.appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ image: Visual Studio 2017
33

44
environment:
55
matrix:
6+
- version: 3.7-rc
7+
variant: windowsservercore
68
- version: 3.6
79
variant: windowsservercore
810
- version: 3.5

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ language: bash
22
services: docker
33

44
env:
5+
- VERSION=3.7-rc VARIANT=stretch
6+
- VERSION=3.7-rc VARIANT=stretch/slim
7+
- VERSION=3.7-rc VARIANT=alpine3.6
58
- VERSION=3.6 VARIANT=stretch
69
- VERSION=3.6 VARIANT=jessie
710
- VERSION=3.6 VARIANT=jessie/slim

3.3/jessie/slim/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
2727
ENV PYTHON_VERSION 3.3.7
2828

2929
RUN set -ex \
30-
&& buildDeps=' \
30+
&& buildDeps=" \
3131
dpkg-dev \
3232
gcc \
3333
libbz2-dev \
@@ -46,7 +46,9 @@ RUN set -ex \
4646
wget \
4747
xz-utils \
4848
zlib1g-dev \
49-
' \
49+
# as of Stretch, "gpg" is no longer included by default
50+
$(command -v gpg > /dev/null || echo 'gnupg2 dirmngr') \
51+
" \
5052
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
5153
\
5254
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \

3.4/jessie/slim/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
2727
ENV PYTHON_VERSION 3.4.7
2828

2929
RUN set -ex \
30-
&& buildDeps=' \
30+
&& buildDeps=" \
3131
dpkg-dev \
3232
gcc \
3333
libbz2-dev \
@@ -46,7 +46,9 @@ RUN set -ex \
4646
wget \
4747
xz-utils \
4848
zlib1g-dev \
49-
' \
49+
# as of Stretch, "gpg" is no longer included by default
50+
$(command -v gpg > /dev/null || echo 'gnupg2 dirmngr') \
51+
" \
5052
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
5153
\
5254
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \

3.5/jessie/slim/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
2727
ENV PYTHON_VERSION 3.5.4
2828

2929
RUN set -ex \
30-
&& buildDeps=' \
30+
&& buildDeps=" \
3131
dpkg-dev \
3232
gcc \
3333
libbz2-dev \
@@ -46,7 +46,9 @@ RUN set -ex \
4646
wget \
4747
xz-utils \
4848
zlib1g-dev \
49-
' \
49+
# as of Stretch, "gpg" is no longer included by default
50+
$(command -v gpg > /dev/null || echo 'gnupg2 dirmngr') \
51+
" \
5052
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
5153
\
5254
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \

3.6/jessie/slim/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
2727
ENV PYTHON_VERSION 3.6.2
2828

2929
RUN set -ex \
30-
&& buildDeps=' \
30+
&& buildDeps=" \
3131
dpkg-dev \
3232
gcc \
3333
libbz2-dev \
@@ -46,7 +46,9 @@ RUN set -ex \
4646
wget \
4747
xz-utils \
4848
zlib1g-dev \
49-
' \
49+
# as of Stretch, "gpg" is no longer included by default
50+
$(command -v gpg > /dev/null || echo 'gnupg2 dirmngr') \
51+
" \
5052
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
5153
\
5254
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \

3.7-rc/alpine3.6/Dockerfile

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
FROM alpine:3.6
8+
9+
# ensure local python is preferred over distribution python
10+
ENV PATH /usr/local/bin:$PATH
11+
12+
# http://bugs.python.org/issue19846
13+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14+
ENV LANG C.UTF-8
15+
16+
# install ca-certificates so that HTTPS works consistently
17+
# the other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
20+
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
21+
ENV PYTHON_VERSION 3.7.0a1
22+
23+
RUN set -ex \
24+
&& apk add --no-cache --virtual .fetch-deps \
25+
gnupg \
26+
libressl \
27+
tar \
28+
xz \
29+
\
30+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
31+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
32+
&& export GNUPGHOME="$(mktemp -d)" \
33+
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
34+
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
35+
&& rm -rf "$GNUPGHOME" python.tar.xz.asc \
36+
&& mkdir -p /usr/src/python \
37+
&& tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
38+
&& rm python.tar.xz \
39+
\
40+
&& apk add --no-cache --virtual .build-deps \
41+
bzip2-dev \
42+
coreutils \
43+
dpkg-dev dpkg \
44+
expat-dev \
45+
gcc \
46+
gdbm-dev \
47+
libc-dev \
48+
libffi-dev \
49+
linux-headers \
50+
make \
51+
ncurses-dev \
52+
libressl \
53+
libressl-dev \
54+
pax-utils \
55+
readline-dev \
56+
sqlite-dev \
57+
tcl-dev \
58+
tk \
59+
tk-dev \
60+
xz-dev \
61+
zlib-dev \
62+
# add build deps before removing fetch deps in case there's overlap
63+
&& apk del .fetch-deps \
64+
\
65+
&& cd /usr/src/python \
66+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
67+
&& ./configure \
68+
--build="$gnuArch" \
69+
--enable-loadable-sqlite-extensions \
70+
--enable-shared \
71+
--with-system-expat \
72+
--with-system-ffi \
73+
--without-ensurepip \
74+
&& make -j "$(nproc)" \
75+
&& make install \
76+
\
77+
&& runDeps="$( \
78+
scanelf --needed --nobanner --recursive /usr/local \
79+
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
80+
| sort -u \
81+
| xargs -r apk info --installed \
82+
| sort -u \
83+
)" \
84+
&& apk add --virtual .python-rundeps $runDeps \
85+
&& apk del .build-deps \
86+
\
87+
&& find /usr/local -depth \
88+
\( \
89+
\( -type d -a \( -name test -o -name tests \) \) \
90+
-o \
91+
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
92+
\) -exec rm -rf '{}' + \
93+
&& rm -rf /usr/src/python
94+
95+
# make some useful symlinks that are expected to exist
96+
RUN cd /usr/local/bin \
97+
&& ln -s idle3 idle \
98+
&& ln -s pydoc3 pydoc \
99+
&& ln -s python3 python \
100+
&& ln -s python3-config python-config
101+
102+
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
103+
ENV PYTHON_PIP_VERSION 9.0.1
104+
105+
RUN set -ex; \
106+
\
107+
apk add --no-cache --virtual .fetch-deps libressl; \
108+
\
109+
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \
110+
\
111+
apk del .fetch-deps; \
112+
\
113+
python get-pip.py \
114+
--disable-pip-version-check \
115+
--no-cache-dir \
116+
"pip==$PYTHON_PIP_VERSION" \
117+
; \
118+
pip --version; \
119+
\
120+
find /usr/local -depth \
121+
\( \
122+
\( -type d -a \( -name test -o -name tests \) \) \
123+
-o \
124+
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
125+
\) -exec rm -rf '{}' +; \
126+
rm -f get-pip.py
127+
128+
CMD ["python3"]

3.7-rc/stretch/Dockerfile

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
FROM buildpack-deps:stretch
8+
9+
# ensure local python is preferred over distribution python
10+
ENV PATH /usr/local/bin:$PATH
11+
12+
# http://bugs.python.org/issue19846
13+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14+
ENV LANG C.UTF-8
15+
16+
# runtime dependencies
17+
RUN apt-get update && apt-get install -y --no-install-recommends \
18+
tcl \
19+
tk \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
23+
ENV PYTHON_VERSION 3.7.0a1
24+
25+
RUN set -ex \
26+
&& buildDeps=' \
27+
dpkg-dev \
28+
tcl-dev \
29+
tk-dev \
30+
' \
31+
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
32+
\
33+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
34+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
35+
&& export GNUPGHOME="$(mktemp -d)" \
36+
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
37+
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
38+
&& rm -rf "$GNUPGHOME" python.tar.xz.asc \
39+
&& mkdir -p /usr/src/python \
40+
&& tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
41+
&& rm python.tar.xz \
42+
\
43+
&& cd /usr/src/python \
44+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
45+
&& ./configure \
46+
--build="$gnuArch" \
47+
--enable-loadable-sqlite-extensions \
48+
--enable-shared \
49+
--with-system-expat \
50+
--with-system-ffi \
51+
--without-ensurepip \
52+
&& make -j "$(nproc)" \
53+
&& make install \
54+
&& ldconfig \
55+
\
56+
&& apt-get purge -y --auto-remove $buildDeps \
57+
\
58+
&& find /usr/local -depth \
59+
\( \
60+
\( -type d -a \( -name test -o -name tests \) \) \
61+
-o \
62+
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
63+
\) -exec rm -rf '{}' + \
64+
&& rm -rf /usr/src/python
65+
66+
# make some useful symlinks that are expected to exist
67+
RUN cd /usr/local/bin \
68+
&& ln -s idle3 idle \
69+
&& ln -s pydoc3 pydoc \
70+
&& ln -s python3 python \
71+
&& ln -s python3-config python-config
72+
73+
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
74+
ENV PYTHON_PIP_VERSION 9.0.1
75+
76+
RUN set -ex; \
77+
\
78+
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \
79+
\
80+
python get-pip.py \
81+
--disable-pip-version-check \
82+
--no-cache-dir \
83+
"pip==$PYTHON_PIP_VERSION" \
84+
; \
85+
pip --version; \
86+
\
87+
find /usr/local -depth \
88+
\( \
89+
\( -type d -a \( -name test -o -name tests \) \) \
90+
-o \
91+
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
92+
\) -exec rm -rf '{}' +; \
93+
rm -f get-pip.py
94+
95+
CMD ["python3"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy