-
Notifications
You must be signed in to change notification settings - Fork 31
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
Docker file container size optimization. #22
Comments
http://thenewstack.io/microcontainers-iron-ios-new-hack-shrink-docker-containers/ |
Breakdown of our usage https://imagelayers.io/?images=mobicents%2Frestcomm:latest |
Amazing application. Thank you Jean. |
hi @deruelle @leftyb
Container's update size ~ 270 MB https://github.com/hamsterksu/restcomm-docker-v2/tree/master solution 2i think it's possible to split it to 3 images
but in this case we need to move a lot of changes in restomm-sip-servlets like there - https://github.com/RestComm/Restcomm-Connect/blob/master/release/build.xml#L151 solution 3Another possible solution split it to 3 images
to build restcomm/restcomm-base:as7 we can download restcomm-connect AS7 and remove all wars from so solution 4Another possible solution split it to 5 images
and use docker compose to run to use all in one
WDYT? |
option 4 is here - https://github.com/hamsterksu/restcomm-docker-v2/tree/option_4 |
@hamsterksu nice ! Would you like to make a pull request so that @leftyb can review ? |
Hi @hamsterksu, Thank you for the suggestion. I will need to make some tests following this approach to confirm. I am not sure that this approach is changing the download size, as by default docker updates only the layers that have changed, when you update a container. So maybe at the first update after pulling the container will result in less downloadable data, but after that, for pulling just new container where RC version/build has only been changed maybe the data to download will be the same, with the way we are using it now. But I can not say 100% will try to make some tests and will update. |
We need to provide a more "light weight" container for the community users and for our own better production experience.
There are various technics to reduce the size of the container.
https://www.ctl.io/developers/blog/post/optimizing-docker-images/
http://www.developer.com/design/a-guide-to-docker-image-optimization.html
http://blog.tutum.co/2014/10/22/how-to-optimize-your-dockerfile/
The text was updated successfully, but these errors were encountered: