Commit graph

28 commits

Author SHA1 Message Date
Zak B. Elep
f91962cfe6 Embed cpanm SHA256 checksum for verifying in image build
Install cpanm in the same fashion as Perl: via source dist with SHA256
checksum.  Thanks @tianon for the idea!
2017-08-19 19:25:22 +08:00
Zak B. Elep
0a6526583a generate.pl: Use single canonical location for getting Perl tarballs
We seem to be using www.cpan.org for getting the Perl tarballs for
patching with Devel::PatchPerl, yet in our generated Dockerfiles we are
using cpan.metacpan.org instead.  Since the former location is listed in
www.perl.org as the canonical Perl source location, let's base from that
as our single source of truth.

This also means we can depend less on finding which PAUSE account has
which Perl release, so let's remove that from the Releases.yaml as well.
2017-08-19 19:21:34 +08:00
Zak B. Elep
ccda32e166 Update maintainers in Dockerfiles
`MAINTAINER` Dockerfile directive is now deprecated (see
https://github.com/moby/moby/pull/25466) so update generate.pl to use
`LABEL` instead.  This is also a good time to add myself :)

Regenerate the Dockerfiles as well for sync.
2017-08-13 00:56:45 +08:00
Zak B. Elep
d6371f3fdf generate.pl: Use 3-arg open()
Heed perlcritic/PBP
2017-08-11 17:24:44 +08:00
Zak B. Elep
fcd5c61de4 Remove another RUN layer
We don't need `mkdir` since COPY will already make the destination path
for us.
2017-08-11 17:03:26 +08:00
Zak B. Elep
b56dee38fa Fix typo 2017-08-11 17:03:26 +08:00
Zak B. Elep
556e779ba8 Add buildpack_deps option to generate.pl
Enable specifying what `buildpack-deps` tagged image to use on Perl
image builds, defaulting to `stretch` at this time.
2017-08-11 17:03:26 +08:00
Zak B. Elep
cfd34ff245 Remove first RUN layer for installing curl and procps
This is unneeded now that buildpack-deps pulls these in via its own
`buildpack-deps:curl` and `buildpack-deps:scm` base images.
2017-08-11 17:03:26 +08:00
Zak B. Elep
78ff90a848 Add vendor paths
Let `vendorprefix=/usr/local` so `vendorlib` and `vendorarch` can point
to paths in `/usr/local/lib/perl5/vendor_perl`.  Extend the generator.pl
also so we can add more `Configure` settings if we needed it later.

Fixes #32.
2017-07-28 17:26:06 +08:00
Zak B. Elep
a6c1e7349c Fix doc for extra_flags
We use `extra_flags` in the Releases.yaml, not `extra_args`.
2017-07-28 17:26:06 +08:00
Zak B. Elep
290513889f Use SHA256 instead of SHA1
Fixes Perl/docker-perl#12, thanks @diocles!
2017-02-25 14:58:08 +08:00
Martijn van de Streek
6ffd530ae2 Add -Duseshrplib to build flags to build a shared libperl.so
Perl's ./Configure can be asked to build a shared library, libperl.so,
which is required by some modules from CPAN (like Imagemagick), or when
you want to embed the Perl interpreter in your own programs.

However, because there may be a performance penalty, the "old" static
builds have not been removed.

More information can be found in the installation manual at
https://metacpan.org/pod/distribution/perl/INSTALL#Building-a-shared-Perl-library
2016-04-04 08:46:33 +02:00
Zak B. Elep
c3c77badbd Remove garbage in /tmp
Fixes Perl/docker-perl#21
2016-03-25 19:25:38 +08:00
Peter Martini
952b34b915 5.22.1 has been released 2015-12-13 22:27:16 -05:00
Peter Martini
c8a1cb32eb Two generate changes:
1. Allow multiple patches
2. For the Devel::PatchPerl patches, use git diff instead
   of format-patch.  This removes the ever-changing committer/
   subject/etc details and leaves just the actual changes
2015-05-03 12:09:06 -04:00
Peter Martini
fa0cd9695d Merge branch 'devel-patchperl' 2015-05-02 15:15:00 -04:00
Augustina Ragwitz
d29429d450 Bump down generate.pl version to 5.14 2015-05-02 14:56:03 -04:00
Peter Martini
6694b7f07e Stupid typo 2015-04-15 22:35:43 -04:00
Peter Martini
5150798c3b Use Devel::PatchPerl to generate a standard patch 2015-04-15 22:07:10 -04:00
Peter Martini
2fddedd2d3 generate.pl POD changes; split keys into sections 2015-04-11 14:32:49 -07:00
Peter Martini
4cc1d62d05 generate.pl pod update; add desc of test_parallel 2015-04-11 14:29:23 -07:00
Peter Martini
ec0e134827 Allow Releases.yaml to disable parallel testing
Perl 5.16.3 is sporadically failing the dist/IO/t/io_unix.t
on my mention when run with TEST_JOBS > 1, but consistently
passes without that.  Adding a flag to Releases.yaml to allow
this to be coordinated properly.
2015-04-11 14:25:21 -07:00
Peter Martini
808a689179 Add patch support
This is not yet complete; what remains is the ability to generate
the final patch, the one that patches patchlevel.h (and thus
lists the locally applied patches in perl -V / Config.pm).

This requires downloading the proper patchlevel.h for each version
and generating a patch in generate.pl.
2015-04-11 14:19:33 -07:00
Peter Martini
b86caa1346 Make the directory if it doesn't already exist 2015-04-11 14:18:19 -07:00
Tianon Gravi
886e632ad7 Remove sha1.txt and embed it in the Dockerfile
This avoids `COPY` entirely, allowing us to bypass the cache behavior of `COPY` as well.
2015-02-02 10:00:09 -07:00
Arthur Axel 'fREW' Schmidt
e1dda05071 shrink built images by ~100M 2015-01-30 10:02:04 -06:00
Zak B. Elep
1d51fa4277 Remove /root/.cpanm directory 2014-11-01 09:09:20 +08:00
Peter Martini
9af2f25fe5 Added a helper script to regen the Dockerfiles 2014-10-04 01:10:38 -04:00