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 #211

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

orangejulius
Copy link
Member

@orangejulius orangejulius commented Nov 1, 2021

After better-sqlite3 added support for pre-compiled binaries, 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!

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 7fa36b1 into master Nov 5, 2021
@orangejulius orangejulius deleted the remove-compiler-toolchain-deps branch November 5, 2021 14:07
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