No description
Find a file
Zak B. Elep 0cb4fc3643 generate.pl: overhaul to support building slim images
Do a long-needed overhaul of this script allow building of `slim`
variants:

- Make the base image configurable through a new `builds` setting.
- Rename the `64bit` image to `main`, as bit-ness no longer applies as
  we already build on multiple architectures.
- Rename `Releases.yaml` to the more general `config.yml`, allowing it
  to contain the supported image variants and Configure options.
- Run through perltidy 💄

The `slim` variants installs the minimum build-deps needed to build
Perl, and removes them after (save for make and netbase, to retain being
able to install CPAN modules through cpanm.)
2018-08-12 15:36:16 +08:00
5.008.009-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.008.009-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.010.001-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.010.001-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.012.005-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.012.005-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.014.004-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.014.004-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.016.003-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.016.003-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.018.004-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.018.004-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.020.003-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.020.003-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.022.004-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.022.004-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.024.004-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.024.004-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.026.002-64bit 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.026.002-64bit,threaded 💄 Regenerate current Dockerfiles 2018-06-25 19:53:27 +08:00
5.028.000-64bit Generate 5.028.000 2018-06-25 19:59:24 +08:00
5.028.000-64bit,threaded Generate 5.028.000 2018-06-25 19:59:24 +08:00
.gitignore Ignore downloads 2015-04-15 22:06:35 -04:00
.perltidyrc 💄 Add Perl::Tidy for development 2018-08-04 19:46:34 +08:00
config.yml generate.pl: overhaul to support building slim images 2018-08-12 15:36:16 +08:00
cpanfile 💄 Add Perl::Tidy for development 2018-08-04 19:46:34 +08:00
generate.pl generate.pl: overhaul to support building slim images 2018-08-12 15:36:16 +08:00
LICENSE Initial commit 2014-07-06 18:43:53 -04:00
README.md 💄 fix README.md links 2017-12-04 11:43:59 +08:00

docker-perl

This project is the source for the Docker perl repo; for more details, take a look at https://registry.hub.docker.com/_/perl/.

The structure of this repo is to use the full version ID of each Perl version, plus a comma separate list of extensions. Every directory is expected to have at least the bit specification (32bit or 64bit), and at the moment the only other extension is threaded.

Despite having a directory layout expressed in terms of bit specifications as above, the Docker Perl image now builds and runs in architectures other than amd64, such as i386 and arm64v8; see docker-library/official-images for the details.

Getting Started

The individual Dockerfiles are generated via generate.pl, which uses Releases.yaml to populate the individual files. This needs the Devel::PatchPerl and YAML::XS modules, which you can install by doing cpanm --installdeps . in this repository's root directory.

To regenerate the Dockerfiles, just run ./generate.pl. Do note that this might take time as it will download the Perl source tarballs for each version to re-patch with updates from Devel::PatchPerl as needed. Also, it is advised to update Devel::PatchPerl as soon as a new version comes out.

For older versions of Perl, some patches may be necessary to build properly on a current base OS. In those cases, perl -V will show the locally applied patches. These changes should be limited to Configure rather than to code itself, and will be a cherry pick or back port of a patch from the mainline perl branch whenever possible.