From 51672e58be3f80793d7aedca68677183588a899b Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Mon, 27 Feb 2023 20:22:30 +0800 Subject: [PATCH 1/4] config.yml: Add debug build This should add debug images for all current supported Perl releases as well as for perl:devel. --- config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config.yml b/config.yml index bd68768f..974a2097 100644 --- a/config.yml +++ b/config.yml @@ -2,6 +2,7 @@ builds: - main - slim + - debug options: common: "-Duseshrplib -Dvendorprefix=/usr/local" From 887cff5685f5ed28b3e452f0ec2b9d134e2ff000 Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Mon, 27 Feb 2023 20:24:06 +0800 Subject: [PATCH 2/4] generate.pl: Add Dockerfile changes for debug builds - Install gdb - Set debugging flags - Slightly refactor Dockerfile template --- generate.pl | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/generate.pl b/generate.pl index 6ab918ac..9d155567 100755 --- a/generate.pl +++ b/generate.pl @@ -70,6 +70,13 @@ sub die_with_sample { EOF chomp $docker_slim_run_purge; +my $docker_debug_run_install = <<'EOF'; +apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb +EOF +chomp $docker_debug_run_install; + my $config = do { open my $fh, '<', 'config.yml' or die "Couldn't open config"; local $/; @@ -152,7 +159,9 @@ sub die_with_sample { $release->{extra_flags} ||= ''; - $release->{image} = $build =~ /main/ ? 'buildpack-deps' : 'debian'; + $release->{image} = $build =~ /(main|debug)/ ? 'buildpack-deps' : 'debian'; + + my $debug_flags = $build =~ /debug/ ? '-Doptimize=-g -DEBUGGING=both' : ''; for my $debian_release (@{$release->{debian_release}}) { @@ -162,16 +171,24 @@ sub die_with_sample { $output =~ s/\{\{args\}\}/$builds{$build}/mg; if ($build =~ /slim/) { - $output =~ s/\{\{docker_slim_run_install\}\}/$docker_slim_run_install/mg; - $output =~ s/\{\{docker_slim_run_purge\}\}/$docker_slim_run_purge/mg; + $output =~ s/\{\{docker_run_install\}\}/$docker_slim_run_install/mg; + $output =~ s/\{\{docker_run_purge\}\}/$docker_slim_run_purge/mg; $output =~ s/\{\{tag\}\}/$debian_release-slim/mg; } + elsif ($build =~ /debug/) { + $output =~ s/\{\{docker_run_install\}\}/$docker_debug_run_install/mg; + $output =~ s/\{\{debug_flags\}\}/$debug_flags/mg; + $output =~ s#\{\{docker_run_purge\}\}#rm -fr /var/cache/apt/* /var/lib/apt/lists/*#mg; + $output =~ s/\{\{tag\}\}/$debian_release/mg; + } else { - $output =~ s/\{\{docker_slim_run_install\}\}/true/mg; - $output =~ s/\{\{docker_slim_run_purge\}\}/true/mg; + $output =~ s/\{\{docker_run_install\}\}/true/mg; + $output =~ s/\{\{docker_run_purge\}\}/true/mg; $output =~ s/\{\{tag\}\}/$debian_release/mg; } + $output =~ s/ \{\{debug_flags\}\}//mg; + my $dir = sprintf "%i.%03i.%03i-%s-%s", ($release->{version} =~ /(\d+)\.(\d+)\.(\d+)/), $build, $debian_release; mkdir $dir unless -d $dir; @@ -292,7 +309,7 @@ =head1 DESCRIPTION {{docker_copy_perl_patch}} WORKDIR /usr/src/perl -RUN {{docker_slim_run_install}} \ +RUN {{docker_run_install}} \ && curl -fL {{url}} -o perl-{{version}}.tar.{{type}} \ && echo '{{sha256}} *perl-{{version}}.tar.{{type}}' | sha256sum --strict --check - \ && tar --strip-components=1 -xaf perl-{{version}}.tar.{{type}} -C /usr/src/perl \ @@ -301,7 +318,7 @@ =head1 DESCRIPTION && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ - && ./Configure -Darchname="$gnuArch" "$archFlag" {{args}} {{extra_flags}} -des \ + && ./Configure -Darchname="$gnuArch" "$archFlag" {{args}} {{extra_flags}} {{debug_flags}} -des \ && make -j$(nproc) \ && {{test}} \ && make install \ @@ -314,7 +331,7 @@ =head1 DESCRIPTION # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 && echo '{{cpm_dist_sha256}} */usr/local/bin/cpm' | sha256sum --strict --check - \ && chmod +x /usr/local/bin/cpm \ - && {{docker_slim_run_purge}} \ + && {{docker_run_purge}} \ && rm -fr /root/.cpanm /usr/src/perl /usr/src/{{cpanm_dist_name}}* /tmp/* \ && cpanm --version && cpm --version From be494fc99789309c36fccb5f7298f8c8d7573a64 Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Mon, 27 Feb 2023 20:28:45 +0800 Subject: [PATCH 3/4] library.pl: Skip debug images when building image list Debug images will not be hosted on Docker Hub (just yet.) --- library.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.pl b/library.pl index 22534463..d181d67d 100755 --- a/library.pl +++ b/library.pl @@ -69,7 +69,7 @@ sub release { my $builds = shift; my $eol = shift // 0; - my @builds = (@$builds, map {"$_,threaded"} @$builds); + my @builds = grep !/debug/, (@$builds, map {"$_,threaded"} @$builds); for my $build (@builds) { for my $debian (reverse @{$release->{debian_release}}) { From 8009ad5ac6a641019701da7fbf942d206bd42133 Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Fri, 4 Aug 2023 13:13:46 +0800 Subject: [PATCH 4/4] :gear: Regenerate Dockerfiles --- 5.034.001-debug,threaded-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.034.001-debug,threaded-buster/Dockerfile | 37 ++++++++++++++++++++ 5.034.001-debug-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.034.001-debug-buster/Dockerfile | 37 ++++++++++++++++++++ 5.036.001-debug,threaded-bookworm/Dockerfile | 37 ++++++++++++++++++++ 5.036.001-debug,threaded-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.036.001-debug,threaded-buster/Dockerfile | 37 ++++++++++++++++++++ 5.036.001-debug-bookworm/Dockerfile | 37 ++++++++++++++++++++ 5.036.001-debug-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.036.001-debug-buster/Dockerfile | 37 ++++++++++++++++++++ 5.038.000-debug,threaded-bookworm/Dockerfile | 37 ++++++++++++++++++++ 5.038.000-debug,threaded-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.038.000-debug,threaded-buster/Dockerfile | 37 ++++++++++++++++++++ 5.038.000-debug-bookworm/Dockerfile | 37 ++++++++++++++++++++ 5.038.000-debug-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.038.000-debug-buster/Dockerfile | 37 ++++++++++++++++++++ 5.039.002-debug,threaded-bookworm/Dockerfile | 37 ++++++++++++++++++++ 5.039.002-debug,threaded-bullseye/Dockerfile | 37 ++++++++++++++++++++ 5.039.002-debug-bookworm/Dockerfile | 37 ++++++++++++++++++++ 5.039.002-debug-bullseye/Dockerfile | 37 ++++++++++++++++++++ 20 files changed, 740 insertions(+) create mode 100644 5.034.001-debug,threaded-bullseye/Dockerfile create mode 100644 5.034.001-debug,threaded-buster/Dockerfile create mode 100644 5.034.001-debug-bullseye/Dockerfile create mode 100644 5.034.001-debug-buster/Dockerfile create mode 100644 5.036.001-debug,threaded-bookworm/Dockerfile create mode 100644 5.036.001-debug,threaded-bullseye/Dockerfile create mode 100644 5.036.001-debug,threaded-buster/Dockerfile create mode 100644 5.036.001-debug-bookworm/Dockerfile create mode 100644 5.036.001-debug-bullseye/Dockerfile create mode 100644 5.036.001-debug-buster/Dockerfile create mode 100644 5.038.000-debug,threaded-bookworm/Dockerfile create mode 100644 5.038.000-debug,threaded-bullseye/Dockerfile create mode 100644 5.038.000-debug,threaded-buster/Dockerfile create mode 100644 5.038.000-debug-bookworm/Dockerfile create mode 100644 5.038.000-debug-bullseye/Dockerfile create mode 100644 5.038.000-debug-buster/Dockerfile create mode 100644 5.039.002-debug,threaded-bookworm/Dockerfile create mode 100644 5.039.002-debug,threaded-bullseye/Dockerfile create mode 100644 5.039.002-debug-bookworm/Dockerfile create mode 100644 5.039.002-debug-bullseye/Dockerfile diff --git a/5.034.001-debug,threaded-bullseye/Dockerfile b/5.034.001-debug,threaded-bullseye/Dockerfile new file mode 100644 index 00000000..ba6167fe --- /dev/null +++ b/5.034.001-debug,threaded-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \ + && echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \ + && rm perl-5.34.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.34.1","-de0"] diff --git a/5.034.001-debug,threaded-buster/Dockerfile b/5.034.001-debug,threaded-buster/Dockerfile new file mode 100644 index 00000000..cc679f08 --- /dev/null +++ b/5.034.001-debug,threaded-buster/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:buster +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \ + && echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \ + && rm perl-5.34.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.34.1","-de0"] diff --git a/5.034.001-debug-bullseye/Dockerfile b/5.034.001-debug-bullseye/Dockerfile new file mode 100644 index 00000000..498b05d3 --- /dev/null +++ b/5.034.001-debug-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \ + && echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \ + && rm perl-5.34.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.34.1","-de0"] diff --git a/5.034.001-debug-buster/Dockerfile b/5.034.001-debug-buster/Dockerfile new file mode 100644 index 00000000..97488904 --- /dev/null +++ b/5.034.001-debug-buster/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:buster +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \ + && echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \ + && rm perl-5.34.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.34.1","-de0"] diff --git a/5.036.001-debug,threaded-bookworm/Dockerfile b/5.036.001-debug,threaded-bookworm/Dockerfile new file mode 100644 index 00000000..896625d7 --- /dev/null +++ b/5.036.001-debug,threaded-bookworm/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bookworm +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \ + && echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \ + && rm perl-5.36.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.36.1","-de0"] diff --git a/5.036.001-debug,threaded-bullseye/Dockerfile b/5.036.001-debug,threaded-bullseye/Dockerfile new file mode 100644 index 00000000..76c14461 --- /dev/null +++ b/5.036.001-debug,threaded-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \ + && echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \ + && rm perl-5.36.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.36.1","-de0"] diff --git a/5.036.001-debug,threaded-buster/Dockerfile b/5.036.001-debug,threaded-buster/Dockerfile new file mode 100644 index 00000000..a9da3c19 --- /dev/null +++ b/5.036.001-debug,threaded-buster/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:buster +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \ + && echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \ + && rm perl-5.36.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.36.1","-de0"] diff --git a/5.036.001-debug-bookworm/Dockerfile b/5.036.001-debug-bookworm/Dockerfile new file mode 100644 index 00000000..452b362a --- /dev/null +++ b/5.036.001-debug-bookworm/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bookworm +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \ + && echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \ + && rm perl-5.36.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.36.1","-de0"] diff --git a/5.036.001-debug-bullseye/Dockerfile b/5.036.001-debug-bullseye/Dockerfile new file mode 100644 index 00000000..9f6c5014 --- /dev/null +++ b/5.036.001-debug-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \ + && echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \ + && rm perl-5.36.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.36.1","-de0"] diff --git a/5.036.001-debug-buster/Dockerfile b/5.036.001-debug-buster/Dockerfile new file mode 100644 index 00000000..6100bc72 --- /dev/null +++ b/5.036.001-debug-buster/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:buster +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \ + && echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \ + && rm perl-5.36.1.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.36.1","-de0"] diff --git a/5.038.000-debug,threaded-bookworm/Dockerfile b/5.038.000-debug,threaded-bookworm/Dockerfile new file mode 100644 index 00000000..2d54b37e --- /dev/null +++ b/5.038.000-debug,threaded-bookworm/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bookworm +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.38.0.tar.xz -o perl-5.38.0.tar.xz \ + && echo 'eca551caec3bc549a4e590c0015003790bdd1a604ffe19cc78ee631d51f7072e *perl-5.38.0.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.38.0.tar.xz -C /usr/src/perl \ + && rm perl-5.38.0.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.38.0","-de0"] diff --git a/5.038.000-debug,threaded-bullseye/Dockerfile b/5.038.000-debug,threaded-bullseye/Dockerfile new file mode 100644 index 00000000..c3cb8b64 --- /dev/null +++ b/5.038.000-debug,threaded-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.38.0.tar.xz -o perl-5.38.0.tar.xz \ + && echo 'eca551caec3bc549a4e590c0015003790bdd1a604ffe19cc78ee631d51f7072e *perl-5.38.0.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.38.0.tar.xz -C /usr/src/perl \ + && rm perl-5.38.0.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.38.0","-de0"] diff --git a/5.038.000-debug,threaded-buster/Dockerfile b/5.038.000-debug,threaded-buster/Dockerfile new file mode 100644 index 00000000..cea7e891 --- /dev/null +++ b/5.038.000-debug,threaded-buster/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:buster +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.38.0.tar.xz -o perl-5.38.0.tar.xz \ + && echo 'eca551caec3bc549a4e590c0015003790bdd1a604ffe19cc78ee631d51f7072e *perl-5.38.0.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.38.0.tar.xz -C /usr/src/perl \ + && rm perl-5.38.0.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.38.0","-de0"] diff --git a/5.038.000-debug-bookworm/Dockerfile b/5.038.000-debug-bookworm/Dockerfile new file mode 100644 index 00000000..a9ef5a11 --- /dev/null +++ b/5.038.000-debug-bookworm/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bookworm +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.38.0.tar.xz -o perl-5.38.0.tar.xz \ + && echo 'eca551caec3bc549a4e590c0015003790bdd1a604ffe19cc78ee631d51f7072e *perl-5.38.0.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.38.0.tar.xz -C /usr/src/perl \ + && rm perl-5.38.0.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.38.0","-de0"] diff --git a/5.038.000-debug-bullseye/Dockerfile b/5.038.000-debug-bullseye/Dockerfile new file mode 100644 index 00000000..f5e777a6 --- /dev/null +++ b/5.038.000-debug-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.38.0.tar.xz -o perl-5.38.0.tar.xz \ + && echo 'eca551caec3bc549a4e590c0015003790bdd1a604ffe19cc78ee631d51f7072e *perl-5.38.0.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.38.0.tar.xz -C /usr/src/perl \ + && rm perl-5.38.0.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.38.0","-de0"] diff --git a/5.038.000-debug-buster/Dockerfile b/5.038.000-debug-buster/Dockerfile new file mode 100644 index 00000000..1710f46c --- /dev/null +++ b/5.038.000-debug-buster/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:buster +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.38.0.tar.xz -o perl-5.38.0.tar.xz \ + && echo 'eca551caec3bc549a4e590c0015003790bdd1a604ffe19cc78ee631d51f7072e *perl-5.38.0.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.38.0.tar.xz -C /usr/src/perl \ + && rm perl-5.38.0.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.38.0","-de0"] diff --git a/5.039.002-debug,threaded-bookworm/Dockerfile b/5.039.002-debug,threaded-bookworm/Dockerfile new file mode 100644 index 00000000..703f426f --- /dev/null +++ b/5.039.002-debug,threaded-bookworm/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bookworm +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.39.2.tar.xz -o perl-5.39.2.tar.xz \ + && echo 'b7ae33d3c6ff80107d14c92dfb3d8d4944fec926b11bcc40c8764b73c710694f *perl-5.39.2.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.39.2.tar.xz -C /usr/src/perl \ + && rm perl-5.39.2.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Dusedevel -Dversiononly=undef -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.39.2","-de0"] diff --git a/5.039.002-debug,threaded-bullseye/Dockerfile b/5.039.002-debug,threaded-bullseye/Dockerfile new file mode 100644 index 00000000..b3b5f575 --- /dev/null +++ b/5.039.002-debug,threaded-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.39.2.tar.xz -o perl-5.39.2.tar.xz \ + && echo 'b7ae33d3c6ff80107d14c92dfb3d8d4944fec926b11bcc40c8764b73c710694f *perl-5.39.2.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.39.2.tar.xz -C /usr/src/perl \ + && rm perl-5.39.2.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Dusedevel -Dversiononly=undef -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.39.2","-de0"] diff --git a/5.039.002-debug-bookworm/Dockerfile b/5.039.002-debug-bookworm/Dockerfile new file mode 100644 index 00000000..a5ace918 --- /dev/null +++ b/5.039.002-debug-bookworm/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bookworm +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.39.2.tar.xz -o perl-5.39.2.tar.xz \ + && echo 'b7ae33d3c6ff80107d14c92dfb3d8d4944fec926b11bcc40c8764b73c710694f *perl-5.39.2.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.39.2.tar.xz -C /usr/src/perl \ + && rm perl-5.39.2.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Dusedevel -Dversiononly=undef -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.39.2","-de0"] diff --git a/5.039.002-debug-bullseye/Dockerfile b/5.039.002-debug-bullseye/Dockerfile new file mode 100644 index 00000000..7bfe704c --- /dev/null +++ b/5.039.002-debug-bullseye/Dockerfile @@ -0,0 +1,37 @@ +FROM buildpack-deps:bullseye +LABEL maintainer="Peter Martini , Zak B. Elep " + +# No DevelPatchPerl.patch generated +WORKDIR /usr/src/perl + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + gdb \ + && curl -fL https://www.cpan.org/src/5.0/perl-5.39.2.tar.xz -o perl-5.39.2.tar.xz \ + && echo 'b7ae33d3c6ff80107d14c92dfb3d8d4944fec926b11bcc40c8764b73c710694f *perl-5.39.2.tar.xz' | sha256sum --strict --check - \ + && tar --strip-components=1 -xaf perl-5.39.2.tar.xz -C /usr/src/perl \ + && rm perl-5.39.2.tar.xz \ + && cat *.patch | patch -p1 \ + && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \ + && archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \ + && archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \ + && ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Dusedevel -Dversiononly=undef -Doptimize=-g -DEBUGGING=both -des \ + && make -j$(nproc) \ + && TEST_JOBS=$(nproc) make test_harness \ + && make install \ + && cd /usr/src \ + && curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \ + && echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \ + && tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 && perl bin/cpanm . && cd /root \ + && cpanm IO::Socket::SSL \ + && curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \ + # sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299 + && echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \ + && chmod +x /usr/local/bin/cpm \ + && rm -fr /var/cache/apt/* /var/lib/apt/lists/* \ + && rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \ + && cpanm --version && cpm --version + +WORKDIR /usr/src/app + +CMD ["perl5.39.2","-de0"]