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

Stop installing unnecessary packages #20

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Jun 19, 2024

  • Trims the APT package list for Heroku-20 and Heroku-22 to match the packages list used for Heroku-24 (aside from the *t64 package name differences due to Ubuntu 24.04's 64-bit time_t migration).
  • Uses --no-install-recommends to avoid pulling in unnecessary transitive dependencies.
  • Now outputs the size of the app dir when running tests (plus removes test containers after they exit).

The tests added in #15 ensure that there are no missing dynamically linked libraries, and that Chrome + Chromedriver can start.

This reduces the uncompressed slug size impact of this buildpack as follows:

  • Heroku-20: 442 MB -> 350 MB
  • Heroku-22: 426 MB -> 351 MB
  • Heroku-24: 381 MB -> 353 MB

Fixes #17.
GUS-W-16148742.

@edmorley edmorley self-assigned this Jun 19, 2024
@edmorley edmorley marked this pull request as ready for review June 19, 2024 11:09
@edmorley edmorley requested a review from mars June 19, 2024 11:11
- Trims the APT package list for Heroku-20 and Heroku-22 to match
  the packages list used for Heroku-24.
- Uses `--no-install-recommends` to avoid pulling in unnecessary
  transitive dependencies.
- Now outputs the size of the app dir when running tests (plus removes
  test containers after they exit).

The tests added in #15 ensure that there are no missing dynamically
linked libraries, and that Chrome + Chromedriver can start.

This reduces the uncompressed slug size impact of this buildpack as follows:
- Heroku-20: 442 MB -> 350 MB
- Heroku-22: 426 MB -> 351 MB
- Heroku-24: 381 MB -> 353 MB

Fixes #17.
@edmorley edmorley force-pushed the edmorley/fewer-packages branch from 0e295b7 to eaf01f8 Compare June 20, 2024 13:14
Copy link
Member

@mars mars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this better ❤️

@edmorley edmorley merged commit 31fd2c2 into main Jun 21, 2024
3 checks passed
@edmorley edmorley deleted the edmorley/fewer-packages branch June 21, 2024 10:11
@edmorley
Copy link
Member Author

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.

Use --no-install-recommends with apt-get
2 participants