Skip to content

Commit 5d437c7

Browse files
committed
⚙️ Generate Dockerfiles for debug images
1 parent 4a860ca commit 5d437c7

File tree

16 files changed

+592
-0
lines changed

16 files changed

+592
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:bullseye
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.32.1.tar.xz -o perl-5.32.1.tar.xz \
11+
&& echo '57cc47c735c8300a8ce2fa0643507b44c4ae59012bfdad0121313db639e02309 *perl-5.32.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.32.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.32.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.32.1","-de0"]
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:buster
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.32.1.tar.xz -o perl-5.32.1.tar.xz \
11+
&& echo '57cc47c735c8300a8ce2fa0643507b44c4ae59012bfdad0121313db639e02309 *perl-5.32.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.32.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.32.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.32.1","-de0"]

5.032.001-debug-bullseye/Dockerfile

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:bullseye
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.32.1.tar.xz -o perl-5.32.1.tar.xz \
11+
&& echo '57cc47c735c8300a8ce2fa0643507b44c4ae59012bfdad0121313db639e02309 *perl-5.32.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.32.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.32.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.32.1","-de0"]

5.032.001-debug-buster/Dockerfile

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:buster
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.32.1.tar.xz -o perl-5.32.1.tar.xz \
11+
&& echo '57cc47c735c8300a8ce2fa0643507b44c4ae59012bfdad0121313db639e02309 *perl-5.32.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.32.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.32.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.32.1","-de0"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:bullseye
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
11+
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.34.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.34.1","-de0"]
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:buster
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
11+
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.34.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.34.1","-de0"]

5.034.001-debug-bullseye/Dockerfile

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:bullseye
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
11+
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.34.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.34.1","-de0"]

5.034.001-debug-buster/Dockerfile

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:buster
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
11+
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.34.1.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.34.1","-de0"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:bullseye
2+
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"
3+
4+
# No DevelPatchPerl.patch generated
5+
WORKDIR /usr/src/perl
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
gdb \
10+
&& curl -fL https://www.cpan.org/src/5.0/perl-5.36.0.tar.xz -o perl-5.36.0.tar.xz \
11+
&& echo '0f386dccbee8e26286404b2cca144e1005be65477979beb9b1ba272d4819bcf0 *perl-5.36.0.tar.xz' | sha256sum --strict --check - \
12+
&& tar --strip-components=1 -xaf perl-5.36.0.tar.xz -C /usr/src/perl \
13+
&& rm perl-5.36.0.tar.xz \
14+
&& cat *.patch | patch -p1 \
15+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
16+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
17+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
18+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -Doptimize=-g -DEBUGGING=both -des \
19+
&& make -j$(nproc) \
20+
&& TEST_JOBS=$(nproc) make test_harness \
21+
&& make install \
22+
&& cd /usr/src \
23+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz \
24+
&& echo '3e8c9d9b44a7348f9acc917163dbfc15bd5ea72501492cea3a35b346440ff862 *App-cpanminus-1.7046.tar.gz' | sha256sum --strict --check - \
25+
&& tar -xzf App-cpanminus-1.7046.tar.gz && cd App-cpanminus-1.7046 && perl bin/cpanm . && cd /root \
26+
&& cpanm IO::Socket::SSL \
27+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/cpm -o /usr/local/bin/cpm \
28+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
29+
&& echo '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
30+
&& chmod +x /usr/local/bin/cpm \
31+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
32+
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7046* /tmp/* \
33+
&& cpanm --version && cpm --version
34+
35+
WORKDIR /
36+
37+
CMD ["perl5.36.0","-de0"]

0 commit comments

Comments
 (0)