-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
fix: use default node image to build docker #7004
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## rc/v1.21.0 #7004 +/- ##
===========================================
Coverage 62.48% 62.49%
===========================================
Files 576 576
Lines 61198 61198
Branches 2141 2132 -9
===========================================
+ Hits 38242 38243 +1
Misses 22916 22916
+ Partials 40 39 -1 |
Looks like the slim image is 72MB + lodestar |
do you know the total image size? |
@nflaig it's ~181MB https://hub.docker.com/r/tuyennhv/lodestar/tags while it's ~161MB for the current image https://hub.docker.com/r/chainsafe/lodestar/tags |
* fix: use default node image instead of alpine * fix: use apt-get * Apply suggestions from code review --------- Co-authored-by: Cayman <caymannava@gmail.com>
🎉 This PR is included in v1.21.0 🎉 |
* fix: use default node image instead of alpine * fix: use apt-get * Apply suggestions from code review --------- Co-authored-by: Cayman <caymannava@gmail.com>
Motivation
Description
Two things that may cause the performance issue on docker:
musl
libc in the docker image https://github.com/ChainSafe/blst-ts/blob/f70469ef04507934b38560b94ff9d3897c01bbf3/index.js#L169this PR uses the default node image which is supposed to have no different to service deployment. The down side is its image size, now it's ~493MB which is >3x the current image size so we need to consider this fact
Closes #7003