Skip to content

Update python #6270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2019
Merged

Update python #6270

merged 1 commit into from
Jul 12, 2019

Conversation

yosifkit
Copy link
Member

Changes:

Changes:

- docker-library/python@13ae0c0: Merge pull request docker-library/python#405 from J0WI/buster
- docker-library/python@2a11f61: Add Debian Buster and remove Jessie
- docker-library/python@a12a97a: Merge pull request docker-library/python#404 from infosiftr/enable-optimizations
- docker-library/python@f82205c: Add "--enable-optimizations" (and a slimmer PROFILE_TASK than the default of "run all tests")
- docker-library/python@ccbc1f5: Remove Python 3.6 for Windows
@yosifkit
Copy link
Member Author

Diff:
diff --git a/_bashbrew-arches b/_bashbrew-arches
index a8fdac6..e45f84f 100644
--- a/_bashbrew-arches
+++ b/_bashbrew-arches
@@ -12,10 +12,13 @@ python:2-alpine @ arm64v8
 python:2-alpine @ i386
 python:2-alpine @ ppc64le
 python:2-alpine @ s390x
-python:2-jessie @ amd64
-python:2-jessie @ arm32v5
-python:2-jessie @ arm32v7
-python:2-jessie @ i386
+python:2-buster @ amd64
+python:2-buster @ arm32v5
+python:2-buster @ arm32v7
+python:2-buster @ arm64v8
+python:2-buster @ i386
+python:2-buster @ ppc64le
+python:2-buster @ s390x
 python:2-slim @ amd64
 python:2-slim @ arm32v5
 python:2-slim @ arm32v7
@@ -23,10 +26,13 @@ python:2-slim @ arm64v8
 python:2-slim @ i386
 python:2-slim @ ppc64le
 python:2-slim @ s390x
-python:2-slim-jessie @ amd64
-python:2-slim-jessie @ arm32v5
-python:2-slim-jessie @ arm32v7
-python:2-slim-jessie @ i386
+python:2-slim-stretch @ amd64
+python:2-slim-stretch @ arm32v5
+python:2-slim-stretch @ arm32v7
+python:2-slim-stretch @ arm64v8
+python:2-slim-stretch @ i386
+python:2-slim-stretch @ ppc64le
+python:2-slim-stretch @ s390x
 python:2-stretch @ amd64
 python:2-stretch @ arm32v5
 python:2-stretch @ arm32v7
@@ -51,10 +57,13 @@ python:3.5-alpine @ arm64v8
 python:3.5-alpine @ i386
 python:3.5-alpine @ ppc64le
 python:3.5-alpine @ s390x
-python:3.5-jessie @ amd64
-python:3.5-jessie @ arm32v5
-python:3.5-jessie @ arm32v7
-python:3.5-jessie @ i386
+python:3.5-buster @ amd64
+python:3.5-buster @ arm32v5
+python:3.5-buster @ arm32v7
+python:3.5-buster @ arm64v8
+python:3.5-buster @ i386
+python:3.5-buster @ ppc64le
+python:3.5-buster @ s390x
 python:3.5-slim @ amd64
 python:3.5-slim @ arm32v5
 python:3.5-slim @ arm32v7
@@ -62,10 +71,13 @@ python:3.5-slim @ arm64v8
 python:3.5-slim @ i386
 python:3.5-slim @ ppc64le
 python:3.5-slim @ s390x
-python:3.5-slim-jessie @ amd64
-python:3.5-slim-jessie @ arm32v5
-python:3.5-slim-jessie @ arm32v7
-python:3.5-slim-jessie @ i386
+python:3.5-slim-stretch @ amd64
+python:3.5-slim-stretch @ arm32v5
+python:3.5-slim-stretch @ arm32v7
+python:3.5-slim-stretch @ arm64v8
+python:3.5-slim-stretch @ i386
+python:3.5-slim-stretch @ ppc64le
+python:3.5-slim-stretch @ s390x
 python:3.5-stretch @ amd64
 python:3.5-stretch @ arm32v5
 python:3.5-stretch @ arm32v7
@@ -87,10 +99,13 @@ python:3.6-alpine @ arm64v8
 python:3.6-alpine @ i386
 python:3.6-alpine @ ppc64le
 python:3.6-alpine @ s390x
-python:3.6-jessie @ amd64
-python:3.6-jessie @ arm32v5
-python:3.6-jessie @ arm32v7
-python:3.6-jessie @ i386
+python:3.6-buster @ amd64
+python:3.6-buster @ arm32v5
+python:3.6-buster @ arm32v7
+python:3.6-buster @ arm64v8
+python:3.6-buster @ i386
+python:3.6-buster @ ppc64le
+python:3.6-buster @ s390x
 python:3.6-slim @ amd64
 python:3.6-slim @ arm32v5
 python:3.6-slim @ arm32v7
@@ -98,10 +113,13 @@ python:3.6-slim @ arm64v8
 python:3.6-slim @ i386
 python:3.6-slim @ ppc64le
 python:3.6-slim @ s390x
-python:3.6-slim-jessie @ amd64
-python:3.6-slim-jessie @ arm32v5
-python:3.6-slim-jessie @ arm32v7
-python:3.6-slim-jessie @ i386
+python:3.6-slim-stretch @ amd64
+python:3.6-slim-stretch @ arm32v5
+python:3.6-slim-stretch @ arm32v7
+python:3.6-slim-stretch @ arm64v8
+python:3.6-slim-stretch @ i386
+python:3.6-slim-stretch @ ppc64le
+python:3.6-slim-stretch @ s390x
 python:3.6-stretch @ amd64
 python:3.6-stretch @ arm32v5
 python:3.6-stretch @ arm32v7
@@ -109,9 +127,6 @@ python:3.6-stretch @ arm64v8
 python:3.6-stretch @ i386
 python:3.6-stretch @ ppc64le
 python:3.6-stretch @ s390x
-python:3.6-windowsservercore-1803 @ windows-amd64
-python:3.6-windowsservercore-1809 @ windows-amd64
-python:3.6-windowsservercore-ltsc2016 @ windows-amd64
 python:alpine3.9 @ amd64
 python:alpine3.9 @ arm32v6
 python:alpine3.9 @ arm32v7
@@ -126,6 +141,13 @@ python:alpine @ arm64v8
 python:alpine @ i386
 python:alpine @ ppc64le
 python:alpine @ s390x
+python:buster @ amd64
+python:buster @ arm32v5
+python:buster @ arm32v7
+python:buster @ arm64v8
+python:buster @ i386
+python:buster @ ppc64le
+python:buster @ s390x
 python:rc-alpine @ amd64
 python:rc-alpine @ arm32v6
 python:rc-alpine @ arm32v7
@@ -157,6 +179,13 @@ python:slim @ arm64v8
 python:slim @ i386
 python:slim @ ppc64le
 python:slim @ s390x
+python:slim-stretch @ amd64
+python:slim-stretch @ arm32v5
+python:slim-stretch @ arm32v7
+python:slim-stretch @ arm64v8
+python:slim-stretch @ i386
+python:slim-stretch @ ppc64le
+python:slim-stretch @ s390x
 python:stretch @ amd64
 python:stretch @ arm32v5
 python:stretch @ arm32v7
diff --git a/_bashbrew-list b/_bashbrew-list
index b8ee5d7..e0df338 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -2,9 +2,9 @@ python:2
 python:2-alpine
 python:2-alpine3.9
 python:2-alpine3.10
-python:2-jessie
+python:2-buster
 python:2-slim
-python:2-slim-jessie
+python:2-slim-buster
 python:2-slim-stretch
 python:2-stretch
 python:2-windowsservercore
@@ -15,9 +15,9 @@ python:2.7
 python:2.7-alpine
 python:2.7-alpine3.9
 python:2.7-alpine3.10
-python:2.7-jessie
+python:2.7-buster
 python:2.7-slim
-python:2.7-slim-jessie
+python:2.7-slim-buster
 python:2.7-slim-stretch
 python:2.7-stretch
 python:2.7-windowsservercore
@@ -28,9 +28,9 @@ python:2.7.16
 python:2.7.16-alpine
 python:2.7.16-alpine3.9
 python:2.7.16-alpine3.10
-python:2.7.16-jessie
+python:2.7.16-buster
 python:2.7.16-slim
-python:2.7.16-slim-jessie
+python:2.7.16-slim-buster
 python:2.7.16-slim-stretch
 python:2.7.16-stretch
 python:2.7.16-windowsservercore
@@ -41,7 +41,9 @@ python:3
 python:3-alpine
 python:3-alpine3.9
 python:3-alpine3.10
+python:3-buster
 python:3-slim
+python:3-slim-buster
 python:3-slim-stretch
 python:3-stretch
 python:3-windowsservercore
@@ -52,51 +54,45 @@ python:3.5
 python:3.5-alpine
 python:3.5-alpine3.9
 python:3.5-alpine3.10
-python:3.5-jessie
+python:3.5-buster
 python:3.5-slim
-python:3.5-slim-jessie
+python:3.5-slim-buster
 python:3.5-slim-stretch
 python:3.5-stretch
 python:3.5.7
 python:3.5.7-alpine
 python:3.5.7-alpine3.9
 python:3.5.7-alpine3.10
-python:3.5.7-jessie
+python:3.5.7-buster
 python:3.5.7-slim
-python:3.5.7-slim-jessie
+python:3.5.7-slim-buster
 python:3.5.7-slim-stretch
 python:3.5.7-stretch
 python:3.6
 python:3.6-alpine
 python:3.6-alpine3.9
 python:3.6-alpine3.10
-python:3.6-jessie
+python:3.6-buster
 python:3.6-slim
-python:3.6-slim-jessie
+python:3.6-slim-buster
 python:3.6-slim-stretch
 python:3.6-stretch
-python:3.6-windowsservercore
-python:3.6-windowsservercore-1803
-python:3.6-windowsservercore-1809
-python:3.6-windowsservercore-ltsc2016
 python:3.6.9
 python:3.6.9-alpine
 python:3.6.9-alpine3.9
 python:3.6.9-alpine3.10
-python:3.6.9-jessie
+python:3.6.9-buster
 python:3.6.9-slim
-python:3.6.9-slim-jessie
+python:3.6.9-slim-buster
 python:3.6.9-slim-stretch
 python:3.6.9-stretch
-python:3.6.9-windowsservercore
-python:3.6.9-windowsservercore-1803
-python:3.6.9-windowsservercore-1809
-python:3.6.9-windowsservercore-ltsc2016
 python:3.7
 python:3.7-alpine
 python:3.7-alpine3.9
 python:3.7-alpine3.10
+python:3.7-buster
 python:3.7-slim
+python:3.7-slim-buster
 python:3.7-slim-stretch
 python:3.7-stretch
 python:3.7-windowsservercore
@@ -107,7 +103,9 @@ python:3.7.4
 python:3.7.4-alpine
 python:3.7.4-alpine3.9
 python:3.7.4-alpine3.10
+python:3.7.4-buster
 python:3.7.4-slim
+python:3.7.4-slim-buster
 python:3.7.4-slim-stretch
 python:3.7.4-stretch
 python:3.7.4-windowsservercore
@@ -137,6 +135,7 @@ python:3.8.0b2-windowsservercore-ltsc2016
 python:alpine
 python:alpine3.9
 python:alpine3.10
+python:buster
 python:latest
 python:rc
 python:rc-alpine
@@ -149,6 +148,7 @@ python:rc-windowsservercore-1803
 python:rc-windowsservercore-1809
 python:rc-windowsservercore-ltsc2016
 python:slim
+python:slim-buster
 python:slim-stretch
 python:stretch
 python:windowsservercore
diff --git a/_bashbrew-shared-tags b/_bashbrew-shared-tags
index 673b787..d7ce611 100644
--- a/_bashbrew-shared-tags
+++ b/_bashbrew-shared-tags
@@ -1,26 +1,24 @@
-python:2 -- python:2-stretch, python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
+python:2 -- python:2-buster, python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
 python:2-windowsservercore -- python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
-python:2.7 -- python:2-stretch, python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
+python:2.7 -- python:2-buster, python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
 python:2.7-windowsservercore -- python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
-python:2.7.16 -- python:2-stretch, python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
+python:2.7.16 -- python:2-buster, python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
 python:2.7.16-windowsservercore -- python:2-windowsservercore-ltsc2016, python:2-windowsservercore-1803, python:2-windowsservercore-1809
-python:3 -- python:stretch, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
+python:3 -- python:buster, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
 python:3-windowsservercore -- python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
-python:3.5 -- python:3.5-stretch
-python:3.5.7 -- python:3.5-stretch
-python:3.6 -- python:3.6-stretch, python:3.6-windowsservercore-ltsc2016, python:3.6-windowsservercore-1803, python:3.6-windowsservercore-1809
-python:3.6-windowsservercore -- python:3.6-windowsservercore-ltsc2016, python:3.6-windowsservercore-1803, python:3.6-windowsservercore-1809
-python:3.6.9 -- python:3.6-stretch, python:3.6-windowsservercore-ltsc2016, python:3.6-windowsservercore-1803, python:3.6-windowsservercore-1809
-python:3.6.9-windowsservercore -- python:3.6-windowsservercore-ltsc2016, python:3.6-windowsservercore-1803, python:3.6-windowsservercore-1809
-python:3.7 -- python:stretch, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
+python:3.5 -- python:3.5-buster
+python:3.5.7 -- python:3.5-buster
+python:3.6 -- python:3.6-buster
+python:3.6.9 -- python:3.6-buster
+python:3.7 -- python:buster, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
 python:3.7-windowsservercore -- python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
-python:3.7.4 -- python:stretch, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
+python:3.7.4 -- python:buster, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
 python:3.7.4-windowsservercore -- python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
 python:3.8-rc -- python:rc-buster, python:rc-windowsservercore-ltsc2016, python:rc-windowsservercore-1803, python:rc-windowsservercore-1809
 python:3.8-rc-windowsservercore -- python:rc-windowsservercore-ltsc2016, python:rc-windowsservercore-1803, python:rc-windowsservercore-1809
 python:3.8.0b2 -- python:rc-buster, python:rc-windowsservercore-ltsc2016, python:rc-windowsservercore-1803, python:rc-windowsservercore-1809
 python:3.8.0b2-windowsservercore -- python:rc-windowsservercore-ltsc2016, python:rc-windowsservercore-1803, python:rc-windowsservercore-1809
-python:latest -- python:stretch, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
+python:latest -- python:buster, python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
 python:rc -- python:rc-buster, python:rc-windowsservercore-ltsc2016, python:rc-windowsservercore-1803, python:rc-windowsservercore-1809
 python:rc-windowsservercore -- python:rc-windowsservercore-ltsc2016, python:rc-windowsservercore-1803, python:rc-windowsservercore-1809
 python:windowsservercore -- python:windowsservercore-ltsc2016, python:windowsservercore-1803, python:windowsservercore-1809
diff --git a/python_2-jessie/Dockerfile b/python_2-buster/Dockerfile
similarity index 98%
rename from python_2-jessie/Dockerfile
rename to python_2-buster/Dockerfile
index 027de8d..e693c6e 100644
--- a/python_2-jessie/Dockerfile
+++ b/python_2-buster/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM buildpack-deps:jessie
+FROM buildpack-deps:buster
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
diff --git a/python_2-slim-jessie/Dockerfile b/python_2-slim-jessie/Dockerfile
deleted file mode 100644
index 229b897..0000000
diff --git a/python_2-slim/Dockerfile b/python_2-slim-stretch/Dockerfile
similarity index 100%
copy from python_2-slim/Dockerfile
copy to python_2-slim-stretch/Dockerfile
diff --git a/python_2-slim/Dockerfile b/python_2-slim/Dockerfile
index 1ef536c..e08d2a9 100644
--- a/python_2-slim/Dockerfile
+++ b/python_2-slim/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM debian:stretch-slim
+FROM debian:buster-slim
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
diff --git a/python_3.5-alpine/Dockerfile b/python_3.5-alpine/Dockerfile
index 6c40826..7fdc641 100644
--- a/python_3.5-alpine/Dockerfile
+++ b/python_3.5-alpine/Dockerfile
@@ -67,6 +67,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -75,6 +76,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_3.5-alpine3.9/Dockerfile b/python_3.5-alpine3.9/Dockerfile
index f7e61e3..da9c8dd 100644
--- a/python_3.5-alpine3.9/Dockerfile
+++ b/python_3.5-alpine3.9/Dockerfile
@@ -67,6 +67,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -75,6 +76,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_3.5-jessie/Dockerfile b/python_3.5-buster/Dockerfile
similarity index 77%
rename from python_3.5-jessie/Dockerfile
rename to python_3.5-buster/Dockerfile
index ec192b4..b692e26 100644
--- a/python_3.5-jessie/Dockerfile
+++ b/python_3.5-buster/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM buildpack-deps:jessie
+FROM buildpack-deps:buster
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -39,11 +39,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.5-slim-jessie/Dockerfile b/python_3.5-slim-stretch/Dockerfile
similarity index 83%
rename from python_3.5-slim-jessie/Dockerfile
rename to python_3.5-slim-stretch/Dockerfile
index 7edc7ba..d916a1a 100644
--- a/python_3.5-slim-jessie/Dockerfile
+++ b/python_3.5-slim-stretch/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM debian:jessie-slim
+FROM debian:stretch-slim
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -62,11 +62,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.5-slim/Dockerfile b/python_3.5-slim/Dockerfile
index 9d79702..d5d818d 100644
--- a/python_3.5-slim/Dockerfile
+++ b/python_3.5-slim/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM debian:stretch-slim
+FROM debian:buster-slim
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -62,11 +62,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.5-stretch/Dockerfile b/python_3.5-stretch/Dockerfile
index 4ee640d..108c5b0 100644
--- a/python_3.5-stretch/Dockerfile
+++ b/python_3.5-stretch/Dockerfile
@@ -39,11 +39,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.6-alpine/Dockerfile b/python_3.6-alpine/Dockerfile
index dd69b8f..11ee62a 100644
--- a/python_3.6-alpine/Dockerfile
+++ b/python_3.6-alpine/Dockerfile
@@ -69,6 +69,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -77,6 +78,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_3.6-alpine3.9/Dockerfile b/python_3.6-alpine3.9/Dockerfile
index ab5a1f3..edb8f19 100644
--- a/python_3.6-alpine3.9/Dockerfile
+++ b/python_3.6-alpine3.9/Dockerfile
@@ -69,6 +69,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -77,6 +78,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_3.6-jessie/Dockerfile b/python_3.6-buster/Dockerfile
similarity index 77%
rename from python_3.6-jessie/Dockerfile
rename to python_3.6-buster/Dockerfile
index 4473fa3..b56f1a3 100644
--- a/python_3.6-jessie/Dockerfile
+++ b/python_3.6-buster/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM buildpack-deps:jessie
+FROM buildpack-deps:buster
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -39,11 +39,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.6-slim-jessie/Dockerfile b/python_3.6-slim-stretch/Dockerfile
similarity index 83%
rename from python_3.6-slim-jessie/Dockerfile
rename to python_3.6-slim-stretch/Dockerfile
index e6f2a53..999313b 100644
--- a/python_3.6-slim-jessie/Dockerfile
+++ b/python_3.6-slim-stretch/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM debian:jessie-slim
+FROM debian:stretch-slim
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -62,11 +62,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.6-slim/Dockerfile b/python_3.6-slim/Dockerfile
index 10fbad4..a01bcdc 100644
--- a/python_3.6-slim/Dockerfile
+++ b/python_3.6-slim/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM debian:stretch-slim
+FROM debian:buster-slim
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -62,11 +62,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.6-stretch/Dockerfile b/python_3.6-stretch/Dockerfile
index 6b1783d..b4eaf7c 100644
--- a/python_3.6-stretch/Dockerfile
+++ b/python_3.6-stretch/Dockerfile
@@ -39,11 +39,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_3.6-windowsservercore-1803/Dockerfile b/python_3.6-windowsservercore-1803/Dockerfile
deleted file mode 100644
index ae3348f..0000000
diff --git a/python_3.6-windowsservercore-1809/Dockerfile b/python_3.6-windowsservercore-1809/Dockerfile
deleted file mode 100644
index 49aadb8..0000000
diff --git a/python_3.6-windowsservercore-ltsc2016/Dockerfile b/python_3.6-windowsservercore-ltsc2016/Dockerfile
deleted file mode 100644
index 4d5704d..0000000
diff --git a/python_alpine/Dockerfile b/python_alpine/Dockerfile
index af74b66..ea730da 100644
--- a/python_alpine/Dockerfile
+++ b/python_alpine/Dockerfile
@@ -70,6 +70,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -78,6 +79,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_alpine3.9/Dockerfile b/python_alpine3.9/Dockerfile
index bbd243f..f4177c1 100644
--- a/python_alpine3.9/Dockerfile
+++ b/python_alpine3.9/Dockerfile
@@ -70,6 +70,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -78,6 +79,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_stretch/Dockerfile b/python_buster/Dockerfile
similarity index 78%
copy from python_stretch/Dockerfile
copy to python_buster/Dockerfile
index 822c50d..bb5bd0b 100644
--- a/python_stretch/Dockerfile
+++ b/python_buster/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM buildpack-deps:stretch
+FROM buildpack-deps:buster
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -40,11 +40,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_rc-alpine/Dockerfile b/python_rc-alpine/Dockerfile
index 9c2f3af..65cb54c 100644
--- a/python_rc-alpine/Dockerfile
+++ b/python_rc-alpine/Dockerfile
@@ -70,6 +70,7 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
@@ -78,6 +79,42 @@ RUN set -ex \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	\
 	&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
diff --git a/python_rc-buster/Dockerfile b/python_rc-buster/Dockerfile
index e3e7e82..5d61f69 100644
--- a/python_rc-buster/Dockerfile
+++ b/python_rc-buster/Dockerfile
@@ -40,11 +40,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_rc-slim/Dockerfile b/python_rc-slim/Dockerfile
index ca727c7..ad4ee04 100644
--- a/python_rc-slim/Dockerfile
+++ b/python_rc-slim/Dockerfile
@@ -63,11 +63,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_slim/Dockerfile b/python_slim-stretch/Dockerfile
similarity index 84%
copy from python_slim/Dockerfile
copy to python_slim-stretch/Dockerfile
index 3afbeb7..d482224 100644
--- a/python_slim/Dockerfile
+++ b/python_slim-stretch/Dockerfile
@@ -63,11 +63,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_slim/Dockerfile b/python_slim/Dockerfile
index 3afbeb7..9cf0c19 100644
--- a/python_slim/Dockerfile
+++ b/python_slim/Dockerfile
@@ -4,7 +4,7 @@
 # PLEASE DO NOT EDIT IT DIRECTLY.
 #
 
-FROM debian:stretch-slim
+FROM debian:buster-slim
 
 # ensure local python is preferred over distribution python
 ENV PATH /usr/local/bin:$PATH
@@ -63,11 +63,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\
diff --git a/python_stretch/Dockerfile b/python_stretch/Dockerfile
index 822c50d..72dcaa1 100644
--- a/python_stretch/Dockerfile
+++ b/python_stretch/Dockerfile
@@ -40,11 +40,48 @@ RUN set -ex \
 	&& ./configure \
 		--build="$gnuArch" \
 		--enable-loadable-sqlite-extensions \
+		--enable-optimizations \
 		--enable-shared \
 		--with-system-expat \
 		--with-system-ffi \
 		--without-ensurepip \
 	&& make -j "$(nproc)" \
+# https://github.com/docker-library/python/issues/160#issuecomment-509426916
+		PROFILE_TASK='-m test.regrtest --pgo \
+			test_array \
+			test_base64 \
+			test_binascii \
+			test_binhex \
+			test_binop \
+			test_bytes \
+			test_c_locale_coercion \
+			test_class \
+			test_cmath \
+			test_codecs \
+			test_compile \
+			test_complex \
+			test_csv \
+			test_decimal \
+			test_dict \
+			test_float \
+			test_fstring \
+			test_hashlib \
+			test_io \
+			test_iter \
+			test_json \
+			test_long \
+			test_math \
+			test_memoryview \
+			test_pickle \
+			test_re \
+			test_set \
+			test_slice \
+			test_struct \
+			test_threading \
+			test_time \
+			test_traceback \
+			test_unicode \
+		' \
 	&& make install \
 	&& ldconfig \
 	\

@yosifkit
Copy link
Member Author

Build test of #6270; ebf5727; amd64 (python):

$ bashbrew build python:3.8.0b2-buster
Using bashbrew/cache:9d5ebc6bc3e5a06162ad56cf22017f1acc4e3215f20fb23325456799d2806761 (python:3.8.0b2-buster)
Tagging python:3.8.0b2-buster
Tagging python:3.8-rc-buster
Tagging python:rc-buster
Tagging python:3.8.0b2
Tagging python:3.8-rc
Tagging python:rc

$ test/run.sh python:3.8.0b2-buster
testing python:3.8.0b2-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...skipping Hy test -- not allowed on Python 3.8+ (yet!)
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.8.0b2-slim-buster
Using bashbrew/cache:eaca13888d9144a9e0834127f54a7d002ecbca4b424c778502f389c164d0b361 (python:3.8.0b2-slim-buster)
Tagging python:3.8.0b2-slim-buster
Tagging python:3.8-rc-slim-buster
Tagging python:rc-slim-buster
Tagging python:3.8.0b2-slim
Tagging python:3.8-rc-slim
Tagging python:rc-slim

$ test/run.sh python:3.8.0b2-slim-buster
testing python:3.8.0b2-slim-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...skipping Hy test -- not allowed on Python 3.8+ (yet!)
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.8.0b2-alpine3.10
Using bashbrew/cache:72362fd9672ba91d2381511e20d1e7d4c753a5c73bb585506333b1727456fca2 (python:3.8.0b2-alpine3.10)
Tagging python:3.8.0b2-alpine3.10
Tagging python:3.8-rc-alpine3.10
Tagging python:rc-alpine3.10
Tagging python:3.8.0b2-alpine
Tagging python:3.8-rc-alpine
Tagging python:rc-alpine

$ test/run.sh python:3.8.0b2-alpine3.10
testing python:3.8.0b2-alpine3.10
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...skipping Hy test -- not allowed on Python 3.8+ (yet!)
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.8.0b2-windowsservercore-ltsc2016
skipping "python:3.8.0b2-windowsservercore-ltsc2016" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:3.8.0b2-windowsservercore-ltsc2016
testing python:3.8.0b2-windowsservercore-ltsc2016
	image has no tests...skipping


$ bashbrew build python:3.8.0b2-windowsservercore-1803
skipping "python:3.8.0b2-windowsservercore-1803" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:3.8.0b2-windowsservercore-1803
testing python:3.8.0b2-windowsservercore-1803
	image has no tests...skipping


$ bashbrew build python:3.8.0b2-windowsservercore-1809
skipping "python:3.8.0b2-windowsservercore-1809" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:3.8.0b2-windowsservercore-1809
testing python:3.8.0b2-windowsservercore-1809
	image has no tests...skipping


$ bashbrew build python:3.7.4-buster
Using bashbrew/cache:b2e244c3846522bd0cb03c7d3c99db353d16f88c07b40b41dae4d9639318a25d (python:3.7.4-buster)
Tagging python:3.7.4-buster
Tagging python:3.7-buster
Tagging python:3-buster
Tagging python:buster
Tagging python:3.7.4
Tagging python:3.7
Tagging python:3
Tagging python:latest

$ test/run.sh python:3.7.4-buster
testing python:3.7.4-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.7.4-slim-buster
Using bashbrew/cache:e23998ba404cc5c48184a41d2fbdbfb21d2148bbdc9ed2d92d071ff9034945b7 (python:3.7.4-slim-buster)
Tagging python:3.7.4-slim-buster
Tagging python:3.7-slim-buster
Tagging python:3-slim-buster
Tagging python:slim-buster
Tagging python:3.7.4-slim
Tagging python:3.7-slim
Tagging python:3-slim
Tagging python:slim

$ test/run.sh python:3.7.4-slim-buster
testing python:3.7.4-slim-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.7.4-stretch
Using bashbrew/cache:868ccf2bb8140fb6db7d937b6af96d29925b51d25baf11e0e6b8b6ca43b3c7ae (python:3.7.4-stretch)
Tagging python:3.7.4-stretch
Tagging python:3.7-stretch
Tagging python:3-stretch
Tagging python:stretch

$ test/run.sh python:3.7.4-stretch
testing python:3.7.4-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.7.4-slim-stretch
Using bashbrew/cache:7dcccba6dbb66a14995a9a9f5f20693c0f768962f2aeabd8d0fb4662ea004a65 (python:3.7.4-slim-stretch)
Tagging python:3.7.4-slim-stretch
Tagging python:3.7-slim-stretch
Tagging python:3-slim-stretch
Tagging python:slim-stretch

$ test/run.sh python:3.7.4-slim-stretch
testing python:3.7.4-slim-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.7.4-alpine3.10
Using bashbrew/cache:8cf2b703a5a88b451598131d79e30ec0ec868bc7140acf59c587a4c36b2c17b5 (python:3.7.4-alpine3.10)
Tagging python:3.7.4-alpine3.10
Tagging python:3.7-alpine3.10
Tagging python:3-alpine3.10
Tagging python:alpine3.10
Tagging python:3.7.4-alpine
Tagging python:3.7-alpine
Tagging python:3-alpine
Tagging python:alpine

$ test/run.sh python:3.7.4-alpine3.10
testing python:3.7.4-alpine3.10
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.7.4-alpine3.9
Using bashbrew/cache:f23ad140c43fc5e54f5cb1de1f347bd4ea494675aa61cd8f6bdd7ce60b7e05b5 (python:3.7.4-alpine3.9)
Tagging python:3.7.4-alpine3.9
Tagging python:3.7-alpine3.9
Tagging python:3-alpine3.9
Tagging python:alpine3.9

$ test/run.sh python:3.7.4-alpine3.9
testing python:3.7.4-alpine3.9
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.7.4-windowsservercore-ltsc2016
skipping "python:3.7.4-windowsservercore-ltsc2016" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:3.7.4-windowsservercore-ltsc2016
testing python:3.7.4-windowsservercore-ltsc2016
	image has no tests...skipping


$ bashbrew build python:3.7.4-windowsservercore-1803
skipping "python:3.7.4-windowsservercore-1803" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:3.7.4-windowsservercore-1803
testing python:3.7.4-windowsservercore-1803
	image has no tests...skipping


$ bashbrew build python:3.7.4-windowsservercore-1809
skipping "python:3.7.4-windowsservercore-1809" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:3.7.4-windowsservercore-1809
testing python:3.7.4-windowsservercore-1809
	image has no tests...skipping


$ bashbrew build python:3.6.9-buster
Using bashbrew/cache:ae92c00a6de92cbc0864a4e7ef126f375bb03cf4643c79270ff79c3d2820c75d (python:3.6.9-buster)
Tagging python:3.6.9-buster
Tagging python:3.6-buster
Tagging python:3.6.9
Tagging python:3.6

$ test/run.sh python:3.6.9-buster
testing python:3.6.9-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.6.9-slim-buster
Using bashbrew/cache:b104ff230650ef4b141a4c2b4fcf5bde5f93140782b4e73da96368ac74113ce9 (python:3.6.9-slim-buster)
Tagging python:3.6.9-slim-buster
Tagging python:3.6-slim-buster
Tagging python:3.6.9-slim
Tagging python:3.6-slim

$ test/run.sh python:3.6.9-slim-buster
testing python:3.6.9-slim-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.6.9-stretch
Using bashbrew/cache:5f7ee697147f409689196beb172d12de31d9549c72d46dc1cc3c47b8b9dcef50 (python:3.6.9-stretch)
Tagging python:3.6.9-stretch
Tagging python:3.6-stretch

$ test/run.sh python:3.6.9-stretch
testing python:3.6.9-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.6.9-slim-stretch
Using bashbrew/cache:03107d1299d766a0c975ced6a27028807e08e2379cb1724c70e8fd67793a6d73 (python:3.6.9-slim-stretch)
Tagging python:3.6.9-slim-stretch
Tagging python:3.6-slim-stretch

$ test/run.sh python:3.6.9-slim-stretch
testing python:3.6.9-slim-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.6.9-alpine3.10
Using bashbrew/cache:4064df26c8d30705f6e75e8ac175d298aff04c03101ce18599026de6a7e6fc24 (python:3.6.9-alpine3.10)
Tagging python:3.6.9-alpine3.10
Tagging python:3.6-alpine3.10
Tagging python:3.6.9-alpine
Tagging python:3.6-alpine

$ test/run.sh python:3.6.9-alpine3.10
testing python:3.6.9-alpine3.10
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.6.9-alpine3.9
Using bashbrew/cache:0499078fea2be0e1a330f3de380e25decf9ed9da9ce2ce1ef36816e40dfbd9dc (python:3.6.9-alpine3.9)
Tagging python:3.6.9-alpine3.9
Tagging python:3.6-alpine3.9

$ test/run.sh python:3.6.9-alpine3.9
testing python:3.6.9-alpine3.9
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.5.7-buster
Using bashbrew/cache:ee202e3303c61724060aedd28875f08e699aac2db132416791f58a0096a1e5ab (python:3.5.7-buster)
Tagging python:3.5.7-buster
Tagging python:3.5-buster
Tagging python:3.5.7
Tagging python:3.5

$ test/run.sh python:3.5.7-buster
testing python:3.5.7-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.5.7-slim-buster
Using bashbrew/cache:2adeb1a8226c5735918347399e43efe9f5d72ac240d0e3e372bd0ae4d1e1a4b8 (python:3.5.7-slim-buster)
Tagging python:3.5.7-slim-buster
Tagging python:3.5-slim-buster
Tagging python:3.5.7-slim
Tagging python:3.5-slim

$ test/run.sh python:3.5.7-slim-buster
testing python:3.5.7-slim-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.5.7-stretch
Using bashbrew/cache:874ae8d4106ded14aede52a5d3408d64551e504cd1784fb1f9a9722f50808efc (python:3.5.7-stretch)
Tagging python:3.5.7-stretch
Tagging python:3.5-stretch

$ test/run.sh python:3.5.7-stretch
testing python:3.5.7-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.5.7-slim-stretch
Using bashbrew/cache:13845014016b59f68700cb330aab943fa6a794a4deaba56898892260abd27099 (python:3.5.7-slim-stretch)
Tagging python:3.5.7-slim-stretch
Tagging python:3.5-slim-stretch

$ test/run.sh python:3.5.7-slim-stretch
testing python:3.5.7-slim-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.5.7-alpine3.10
Building bashbrew/cache:8a94c9285048edf11d71726ffe3c99a411cd535cb8559c52cd3d8516056bc55f (python:3.5.7-alpine3.10)
Tagging python:3.5.7-alpine3.10
Tagging python:3.5-alpine3.10
Tagging python:3.5.7-alpine
Tagging python:3.5-alpine

$ test/run.sh python:3.5.7-alpine3.10
testing python:3.5.7-alpine3.10
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:3.5.7-alpine3.9
Using bashbrew/cache:1bba8320304eb3b105eb92195026ca58ce2e266baad6b3d865fe2ff0a360195e (python:3.5.7-alpine3.9)
Tagging python:3.5.7-alpine3.9
Tagging python:3.5-alpine3.9

$ test/run.sh python:3.5.7-alpine3.9
testing python:3.5.7-alpine3.9
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-buster
Using bashbrew/cache:7c027483710940726411fbea3e314a1f8f94290517f502955c583057cb00f0ed (python:2.7.16-buster)
Tagging python:2.7.16-buster
Tagging python:2.7-buster
Tagging python:2-buster
Tagging python:2.7.16
Tagging python:2.7
Tagging python:2

$ test/run.sh python:2.7.16-buster
testing python:2.7.16-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-slim-buster
Using bashbrew/cache:e592f5c65c117c6b93285555a7633bf35c95b3d940b655e41a57619952a0979a (python:2.7.16-slim-buster)
Tagging python:2.7.16-slim-buster
Tagging python:2.7-slim-buster
Tagging python:2-slim-buster
Tagging python:2.7.16-slim
Tagging python:2.7-slim
Tagging python:2-slim

$ test/run.sh python:2.7.16-slim-buster
testing python:2.7.16-slim-buster
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-stretch
Using bashbrew/cache:4095209b5e57df3a803725f244804c0f0e2cb604f578750afe3479e4684baca5 (python:2.7.16-stretch)
Tagging python:2.7.16-stretch
Tagging python:2.7-stretch
Tagging python:2-stretch

$ test/run.sh python:2.7.16-stretch
testing python:2.7.16-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-slim-stretch
Using bashbrew/cache:7eb67e5276bf285defaea4c454bd919575a4d181c0e3ab46951ee5148ce0a5cd (python:2.7.16-slim-stretch)
Tagging python:2.7.16-slim-stretch
Tagging python:2.7-slim-stretch
Tagging python:2-slim-stretch

$ test/run.sh python:2.7.16-slim-stretch
testing python:2.7.16-slim-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-alpine3.10
Using bashbrew/cache:94baf5ea78b044b1e5323ca1da669872c1349184669e9b00306378cc2ca1d4c4 (python:2.7.16-alpine3.10)
Tagging python:2.7.16-alpine3.10
Tagging python:2.7-alpine3.10
Tagging python:2-alpine3.10
Tagging python:2.7.16-alpine
Tagging python:2.7-alpine
Tagging python:2-alpine

$ test/run.sh python:2.7.16-alpine3.10
testing python:2.7.16-alpine3.10
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-alpine3.9
Using bashbrew/cache:bbe07cd3041a70b8461d9f4a890ddb0dda90b175d8b7baa32218e02efd804203 (python:2.7.16-alpine3.9)
Tagging python:2.7.16-alpine3.9
Tagging python:2.7-alpine3.9
Tagging python:2-alpine3.9

$ test/run.sh python:2.7.16-alpine3.9
testing python:2.7.16-alpine3.9
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'python-hy' [5/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-imports' [6/9]...passed
	'python-pip-requests-ssl' [7/9]...DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
passed
	'python-sqlite3' [8/9]...passed
	'python-stack-size' [9/9]...passed


$ bashbrew build python:2.7.16-windowsservercore-ltsc2016
skipping "python:2.7.16-windowsservercore-ltsc2016" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:2.7.16-windowsservercore-ltsc2016
testing python:2.7.16-windowsservercore-ltsc2016
	image has no tests...skipping


$ bashbrew build python:2.7.16-windowsservercore-1803
skipping "python:2.7.16-windowsservercore-1803" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:2.7.16-windowsservercore-1803
testing python:2.7.16-windowsservercore-1803
	image has no tests...skipping


$ bashbrew build python:2.7.16-windowsservercore-1809
skipping "python:2.7.16-windowsservercore-1809" (due to architecture "amd64"; only "windows-amd64" supported)

$ test/run.sh python:2.7.16-windowsservercore-1809
testing python:2.7.16-windowsservercore-1809
	image has no tests...skipping

@yosifkit yosifkit merged commit 84262eb into docker-library:master Jul 12, 2019
@yosifkit yosifkit deleted the python branch July 12, 2019 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants