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

Remove unnecessary compiler toolchain dependencies #532

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

orangejulius
Copy link
Member

@orangejulius orangejulius commented Nov 1, 2021

After better-sqlite3 added support for pre-compiled binaries in v6, we no longer need to install a compiler toolchain to run npm install in our Docker images.

pelias/docker-baseimage#23 removes the compiler toolchain from our Pelias baseimages. In order for the toolchain to be removed from the whosonfirst image in particular, we also need to remove those dependencies here.

Until that PR is merged, this change is effectively a no-op. After, between the two PRs we reduce the size of the whosonfirst docker image from 490MB to 261MB, an impressive 221MB savings!

After `better-sqlite3` added support for pre-compiled binaries in
https://github.com/JoshuaWise/better-sqlite3/releases/tag/v6.0.0, we no
longer need to install a compiler toolchain to run `npm install` in our
Docker images.

pelias/docker-baseimage#23 is workong on
removing the compiler toolchain from our Pelias baseimages. In order for
the toolchain to be removed from the whosonfirst image in particular, we
also need to remove those dependencies here.

Until that PR is merged, this change is effectively a no-op. After,
between the two PRs we reduce the size of the whosonfirst docker image
from 490MB to 261MB, an impressive 221MB savings!
orangejulius added a commit to pelias/placeholder that referenced this pull request Nov 1, 2021
After better-sqlite3 added support for [pre-compiled
binaries](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v6.0.0), we
no longer need to install a compiler toolchain to run npm install in our
Docker images.

pelias/docker-baseimage#23 removes the compiler toolchain from our
Pelias baseimages. In order for the toolchain to be removed from the
Placeholder image in particular, we also need to remove those
dependencies here.

Similar to the whosonfirst repository in
pelias/whosonfirst#532, this change by itself is effectively a no-op. After
the baseimage removes the compiler toolchain,the size of the Placeholder docker image
goes from 495MB to 266MB, an impressive 229MB savings!
@orangejulius orangejulius merged commit 22f7ad7 into master Nov 2, 2021
@orangejulius orangejulius deleted the remove-compiler-toolchain-deps branch November 2, 2021 15:19
orangejulius added a commit to pelias/placeholder that referenced this pull request Nov 5, 2021
After better-sqlite3 added support for [pre-compiled
binaries](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v6.0.0), we
no longer need to install a compiler toolchain to run npm install in our
Docker images.

pelias/docker-baseimage#23 removes the compiler toolchain from our
Pelias baseimages. In order for the toolchain to be removed from the
Placeholder image in particular, we also need to remove those
dependencies here.

Similar to the whosonfirst repository in
pelias/whosonfirst#532, this change by itself is effectively a no-op. After
the baseimage removes the compiler toolchain,the size of the Placeholder docker image
goes from 495MB to 266MB, an impressive 229MB savings!
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