Skip to content

[WIP] Reduce image size #210

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

Closed
wants to merge 3 commits into from
Closed

[WIP] Reduce image size #210

wants to merge 3 commits into from

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Jul 7, 2018

1st & 2nd commits provide a small improvement and are quite straightforward.
The 3rd commit allows around 60MB to be saved. It uses a shared library of OpenSSL rather than the static version. OpenSSL & curl shared libraries are isolated from system ones using patchelf to change soname and dependencies (as does auditwheel for manylinux wheels).
Overall, 74MB saved.

@mayeut
Copy link
Member Author

mayeut commented Jul 7, 2018

@dolang, you might be interested in the 3rd commit for #182. curl & openssl shared libraries should not interfere with system ones. This allows to remove the hack around yum in #182 while reducing image size.

@dolang
Copy link

dolang commented Jul 7, 2018

That'd be nice, I'll keep that in mind.

However, right now I'm only tracking the master branch with #182, so your PR would have to be merged first.

@mayeut
Copy link
Member Author

mayeut commented Jul 7, 2018

@dolang, no rush on this of course. Since I saw the comments for the "hack", I just thought I'd give you a head's up on this if it gets merged.

@mayeut mayeut force-pushed the shrink branch 3 times, most recently from 7393247 to 2bf5229 Compare August 20, 2018 19:24
@mayeut mayeut force-pushed the shrink branch 2 times, most recently from 018eaab to b73fef4 Compare September 7, 2018 23:06
@mayeut mayeut force-pushed the shrink branch 2 times, most recently from 0f332de to a90554b Compare September 23, 2018 21:36
@mayeut mayeut force-pushed the shrink branch 5 times, most recently from b141063 to 24039ee Compare October 31, 2018 22:09
@mayeut mayeut force-pushed the shrink branch 2 times, most recently from 4446869 to c6760f0 Compare March 4, 2019 18:55
@mayeut mayeut mentioned this pull request Mar 19, 2019
3 tasks
@mayeut mayeut force-pushed the shrink branch 2 times, most recently from 15832f8 to 31bcdef Compare March 23, 2019 10:52
@mayeut mayeut force-pushed the shrink branch 2 times, most recently from 156bb35 to d302f15 Compare April 6, 2019 19:17
@mayeut mayeut changed the base branch from master to manylinux1 April 10, 2019 21:04
mayeut added 3 commits April 10, 2019 23:58
OpenSSL & curl libraries are isolated from the system one & won't conflict with system tools.
@mayeut mayeut changed the title Reduce image size [WIP] Reduce image size Apr 28, 2019
@mayeut
Copy link
Member Author

mayeut commented Apr 28, 2019

While working on a similar PR for manylinux2010, I found some minor quirks that need resolving.
Work In Progress

@mayeut
Copy link
Member Author

mayeut commented May 1, 2019

Let's no waste energy on manylinux1, I close this for now.

@mayeut mayeut closed this May 1, 2019
@mayeut mayeut deleted the shrink branch March 7, 2020 09:52
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.

2 participants