-
Notifications
You must be signed in to change notification settings - Fork 151
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
Study & Improve Image Size #50
Comments
Do you really need full JRE? I guess that openjdk8-jre-base (aka headless) should be enough. |
Hello @jirutka, thanks for this tip. I tried locally to move to the headless JRE (instead of the JRE), and ended on this error:
I tried to explicitly install For information, the size gain was ~3 Mb based on the |
I guess the suggestion of a smaller "base" image in #54 relates to this issue also? |
Bumping this since the size increased _significantly from ~250MB (1.2) to ~440MB (1.3) as listed on DockerHub; local From a user perspective after reading the changelog, it's completely unclear to me where this increase comes from. After analysis, it seems the increase is fully due to #166 : Seems to be that a feature some might need shouldn't have this much of a size impact, but that's of course for the maintainers to trade off. Guess: Cleaning out cabal caches and removing all the dev packages again should decrease the image size dramatically. |
Thanks @reitzig for pointing the fact that #166 added a 1 Gb size penalty 😱. If you have any knowledge on the cabal package system, it could be a great help to have a contribution. Would you be up for the challenge? There is an opportunity here to contribute to Alpine Linux by adding a native We can also revert #166 time to find a viable solution in term of size, WDYT? |
Not really. I've used cabal to install pandoc before and blew up my backup in the process, so that's what triggered me here. I'll see if I can quickly fix the |
After #39, #46 and #47 have increased the size of the image (protip: I might be the person responsible on this by missing knowledge on Ruby Gems / Native Alpine Package).
Helped has been asked in #47 on this, and we might be able to improve this in the future.
I propose that we first implement a CD process where logs are available with testing harness (cf proposal in #49 ) before jumping on this topic.
What would be your thoughts @mojavelinux @jirutka and the community?
[EDIT] The size increased was caused by the "return" of the JRE OpenJDK 8 installation in #46
The text was updated successfully, but these errors were encountered: