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

Optimize image size #183

Merged
merged 2 commits into from Jun 1, 2021
Merged

Optimize image size #183

merged 2 commits into from Jun 1, 2021

Conversation

itamargiv
Copy link
Member

@itamargiv itamargiv commented May 31, 2021

This PR adds dockerfile linting to CI and updates some Dockerfiles to optimize their resulting image size.

In order to enable recursive - multi file linting, some changes were required in the official hadolint github action, which was forked and upstreamed to hadolint/hadolint-action/pull/34. If and when this PR is merged, the GitHub action for linting dockerfiles must be updated.

Followup for TODO: https://phabricator.wikimedia.org/T284069

Bug: T283174 (link)

This optimizes the image size by avoiding the creation of redundant
layers for each RUN.

Bug: T283174
@itamargiv itamargiv force-pushed the optimize-image-size branch 26 times, most recently from e8d3756 to 377961e Compare May 31, 2021 15:24
This commit adds ignore rules for any existing hadolint issues,
which remain outside the scope of the current task and should
probably be tackled at some other time.

Bug: T283240
@itamargiv itamargiv marked this pull request as ready for review May 31, 2021 16:04
@itamargiv itamargiv changed the title [WIP] Optimize image size Optimize image size May 31, 2021
@itamargiv itamargiv requested review from tarrow and a team May 31, 2021 16:05
@tarrow tarrow merged commit 302dc9f into main Jun 1, 2021
@lorenjohnson lorenjohnson deleted the optimize-image-size branch August 21, 2023 08:36
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.

None yet

2 participants