From f82205cde8f0a5ffa276103a50d843edced67757 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 9 Jul 2019 16:56:53 -0700 Subject: [PATCH] Add "--enable-optimizations" (and a slimmer PROFILE_TASK than the default of "run all tests") --- 3.5/alpine3.10/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.5/alpine3.9/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.5/jessie/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.5/jessie/slim/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.5/stretch/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.5/stretch/slim/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.6/alpine3.10/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.6/alpine3.9/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.6/jessie/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.6/jessie/slim/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.6/stretch/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.6/stretch/slim/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.7/alpine3.10/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.7/alpine3.9/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.7/stretch/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.7/stretch/slim/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.8-rc/alpine3.10/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.8-rc/buster/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ 3.8-rc/buster/slim/Dockerfile | 37 +++++++++++++++++++++++++++++++++++ Dockerfile-alpine.template | 37 +++++++++++++++++++++++++++++++++++ Dockerfile-debian.template | 37 +++++++++++++++++++++++++++++++++++ Dockerfile-slim.template | 37 +++++++++++++++++++++++++++++++++++ 22 files changed, 814 insertions(+) diff --git a/3.5/alpine3.10/Dockerfile b/3.5/alpine3.10/Dockerfile index 6c40826e9..7fdc6416c 100644 --- a/3.5/alpine3.10/Dockerfile +++ b/3.5/alpine3.10/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/3.5/alpine3.9/Dockerfile b/3.5/alpine3.9/Dockerfile index f7e61e38c..da9c8dde5 100644 --- a/3.5/alpine3.9/Dockerfile +++ b/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/3.5/jessie/Dockerfile b/3.5/jessie/Dockerfile index ec192b43b..c6821a78b 100644 --- a/3.5/jessie/Dockerfile +++ b/3.5/jessie/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/3.5/jessie/slim/Dockerfile b/3.5/jessie/slim/Dockerfile index 7edc7ba0b..360dff1a8 100644 --- a/3.5/jessie/slim/Dockerfile +++ b/3.5/jessie/slim/Dockerfile @@ -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/3.5/stretch/Dockerfile b/3.5/stretch/Dockerfile index 4ee640d19..108c5b0d9 100644 --- a/3.5/stretch/Dockerfile +++ b/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/3.5/stretch/slim/Dockerfile b/3.5/stretch/slim/Dockerfile index 9d79702c4..d916a1a9c 100644 --- a/3.5/stretch/slim/Dockerfile +++ b/3.5/stretch/slim/Dockerfile @@ -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/3.6/alpine3.10/Dockerfile b/3.6/alpine3.10/Dockerfile index dd69b8ffc..11ee62ab3 100644 --- a/3.6/alpine3.10/Dockerfile +++ b/3.6/alpine3.10/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/3.6/alpine3.9/Dockerfile b/3.6/alpine3.9/Dockerfile index ab5a1f336..edb8f1996 100644 --- a/3.6/alpine3.9/Dockerfile +++ b/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/3.6/jessie/Dockerfile b/3.6/jessie/Dockerfile index 4473fa33f..71f8c6627 100644 --- a/3.6/jessie/Dockerfile +++ b/3.6/jessie/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/3.6/jessie/slim/Dockerfile b/3.6/jessie/slim/Dockerfile index e6f2a5386..61a3503c5 100644 --- a/3.6/jessie/slim/Dockerfile +++ b/3.6/jessie/slim/Dockerfile @@ -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/3.6/stretch/Dockerfile b/3.6/stretch/Dockerfile index 6b1783d59..b4eaf7c68 100644 --- a/3.6/stretch/Dockerfile +++ b/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/3.6/stretch/slim/Dockerfile b/3.6/stretch/slim/Dockerfile index 10fbad47b..999313bce 100644 --- a/3.6/stretch/slim/Dockerfile +++ b/3.6/stretch/slim/Dockerfile @@ -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/3.7/alpine3.10/Dockerfile b/3.7/alpine3.10/Dockerfile index af74b66f4..ea730da36 100644 --- a/3.7/alpine3.10/Dockerfile +++ b/3.7/alpine3.10/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/3.7/alpine3.9/Dockerfile b/3.7/alpine3.9/Dockerfile index bbd243f37..f4177c170 100644 --- a/3.7/alpine3.9/Dockerfile +++ b/3.7/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/3.7/stretch/Dockerfile b/3.7/stretch/Dockerfile index 822c50d93..72dcaa16c 100644 --- a/3.7/stretch/Dockerfile +++ b/3.7/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 \ \ diff --git a/3.7/stretch/slim/Dockerfile b/3.7/stretch/slim/Dockerfile index 3afbeb7b9..d4822244a 100644 --- a/3.7/stretch/slim/Dockerfile +++ b/3.7/stretch/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/3.8-rc/alpine3.10/Dockerfile b/3.8-rc/alpine3.10/Dockerfile index 9c2f3afb7..65cb54c59 100644 --- a/3.8-rc/alpine3.10/Dockerfile +++ b/3.8-rc/alpine3.10/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/3.8-rc/buster/Dockerfile b/3.8-rc/buster/Dockerfile index e3e7e8274..5d61f691c 100644 --- a/3.8-rc/buster/Dockerfile +++ b/3.8-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/3.8-rc/buster/slim/Dockerfile b/3.8-rc/buster/slim/Dockerfile index ca727c7f5..ad4ee048a 100644 --- a/3.8-rc/buster/slim/Dockerfile +++ b/3.8-rc/buster/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/Dockerfile-alpine.template b/Dockerfile-alpine.template index 35d25ab06..7addeba00 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -64,6 +64,7 @@ RUN set -ex \ && ./configure \ --build="$gnuArch" \ --enable-loadable-sqlite-extensions \ + --enable-optimizations \ --enable-shared \ --with-system-expat \ --with-system-ffi \ @@ -72,6 +73,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/Dockerfile-debian.template b/Dockerfile-debian.template index 8a6db92d3..eae30d77d 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -36,11 +36,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/Dockerfile-slim.template b/Dockerfile-slim.template index a62087e4b..3dda6108a 100644 --- a/Dockerfile-slim.template +++ b/Dockerfile-slim.template @@ -57,11 +57,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 \ \ 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