Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building slim images #54

Merged
merged 2 commits into from
Aug 12, 2018
Merged

Conversation

zakame
Copy link
Member

@zakame zakame commented Aug 4, 2018

This enables slim variants of the Docker Perl image, which are significantly smaller than the default buildpack-deps-based image:

perl     5.28-slim     bd930c5239e8     2018-08-04 19:01:57     112MB
perl     5.28          c82199ef1ab4     2018-06-25 20:49:27     885MB

This also updates generate.pl so that future refactors (very soon) can be done easier.

Special thanks to @tianon and @waterkip for their guidance!

Fixes #52.

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.)
This renames the previous directories to use the new build scheme, as
well as adds new directories for the `slim` variants.
@zakame zakame merged commit 1cd70cc into Perl:master Aug 12, 2018
@zakame zakame deleted the add-slim-images branch August 12, 2018 07:36
zakame added a commit to zakame/docker-library-official-images that referenced this pull request Aug 12, 2018
Provide Perl images built against "debian:slim" variants for a big
reduction in image size (from 800MB down to ~100MB in most cases,) with
no loss to language functionality.

- Perl/docker-perl#52
- Perl/docker-perl#54
zakame added a commit to zakame/docker-library-official-images that referenced this pull request Aug 12, 2018
Provide Perl images built against "debian:slim" variants for a big
reduction in image size (from 800MB down to ~100MB in most cases,) with
no loss to language functionality.

- Perl/docker-perl#52
- Perl/docker-perl#54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant