{"action":"created","issue":{"url":"https://api.github.com/repos/RestComm/Restcomm-Docker/issues/22","repository_url":"https://api.github.com/repos/RestComm/Restcomm-Docker","labels_url":"https://api.github.com/repos/RestComm/Restcomm-Docker/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/RestComm/Restcomm-Docker/issues/22/comments","events_url":"https://api.github.com/repos/RestComm/Restcomm-Docker/issues/22/events","html_url":"https://github.com/RestComm/Restcomm-Docker/issues/22","id":130314822,"number":22,"title":"Docker file container size optimization.","user":{"login":"leftyb","id":4802924,"avatar_url":"https://avatars.githubusercontent.com/u/4802924?v=3","gravatar_id":"","url":"https://api.github.com/users/leftyb","html_url":"https://github.com/leftyb","followers_url":"https://api.github.com/users/leftyb/followers","following_url":"https://api.github.com/users/leftyb/following{/other_user}","gists_url":"https://api.github.com/users/leftyb/gists{/gist_id}","starred_url":"https://api.github.com/users/leftyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leftyb/subscriptions","organizations_url":"https://api.github.com/users/leftyb/orgs","repos_url":"https://api.github.com/users/leftyb/repos","events_url":"https://api.github.com/users/leftyb/events{/privacy}","received_events_url":"https://api.github.com/users/leftyb/received_events","type":"User","site_admin":false},"labels":[{"id":259238169,"url":"https://api.github.com/repos/RestComm/Restcomm-Docker/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":{"login":"leftyb","id":4802924,"avatar_url":"https://avatars.githubusercontent.com/u/4802924?v=3","gravatar_id":"","url":"https://api.github.com/users/leftyb","html_url":"https://github.com/leftyb","followers_url":"https://api.github.com/users/leftyb/followers","following_url":"https://api.github.com/users/leftyb/following{/other_user}","gists_url":"https://api.github.com/users/leftyb/gists{/gist_id}","starred_url":"https://api.github.com/users/leftyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leftyb/subscriptions","organizations_url":"https://api.github.com/users/leftyb/orgs","repos_url":"https://api.github.com/users/leftyb/repos","events_url":"https://api.github.com/users/leftyb/events{/privacy}","received_events_url":"https://api.github.com/users/leftyb/received_events","type":"User","site_admin":false},"assignees":[{"login":"leftyb","id":4802924,"avatar_url":"https://avatars.githubusercontent.com/u/4802924?v=3","gravatar_id":"","url":"https://api.github.com/users/leftyb","html_url":"https://github.com/leftyb","followers_url":"https://api.github.com/users/leftyb/followers","following_url":"https://api.github.com/users/leftyb/following{/other_user}","gists_url":"https://api.github.com/users/leftyb/gists{/gist_id}","starred_url":"https://api.github.com/users/leftyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leftyb/subscriptions","organizations_url":"https://api.github.com/users/leftyb/orgs","repos_url":"https://api.github.com/users/leftyb/repos","events_url":"https://api.github.com/users/leftyb/events{/privacy}","received_events_url":"https://api.github.com/users/leftyb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-02-01T09:58:49Z","updated_at":"2016-11-19T12:36:13Z","closed_at":null,"body":"We need to provide a more \"light weight\" container for the community users and for our own better production experience.\nThere are various technics to reduce the size of the container.\n\nhttps://www.ctl.io/developers/blog/post/optimizing-docker-images/\nhttp://www.developer.com/design/a-guide-to-docker-image-optimization.html\nhttp://blog.tutum.co/2014/10/22/how-to-optimize-your-dockerfile/\n"},"comment":{"url":"https://api.github.com/repos/RestComm/Restcomm-Docker/issues/comments/261711500","html_url":"https://github.com/RestComm/Restcomm-Docker/issues/22#issuecomment-261711500","issue_url":"https://api.github.com/repos/RestComm/Restcomm-Docker/issues/22","id":261711500,"user":{"login":"hamsterksu","id":2598714,"avatar_url":"https://avatars.githubusercontent.com/u/2598714?v=3","gravatar_id":"","url":"https://api.github.com/users/hamsterksu","html_url":"https://github.com/hamsterksu","followers_url":"https://api.github.com/users/hamsterksu/followers","following_url":"https://api.github.com/users/hamsterksu/following{/other_user}","gists_url":"https://api.github.com/users/hamsterksu/gists{/gist_id}","starred_url":"https://api.github.com/users/hamsterksu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamsterksu/subscriptions","organizations_url":"https://api.github.com/users/hamsterksu/orgs","repos_url":"https://api.github.com/users/hamsterksu/repos","events_url":"https://api.github.com/users/hamsterksu/events{/privacy}","received_events_url":"https://api.github.com/users/hamsterksu/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T12:36:13Z","updated_at":"2016-11-19T12:36:13Z","body":"hi @deruelle @leftyb \r\ni have split restcomm docker image to 2 images:\r\n\r\n1. restcomm/baseimage:java7 - 861 MB\r\n2. restcomm/restcomm - 1.127 GB (include 861MB base image)\r\n\r\nContainer's update size ~ 270 MB\r\n\r\nhttps://github.com/hamsterksu/restcomm-docker-v2/tree/master\r\n\r\n### solution 2\r\n\r\ni think it's possible to split it to 3 images\r\n\r\n1. restcomm/baseimage:java7\r\n2. restcomm/restcomm-sip-servlets:as7 \r\n3. restcomm/restcomm\r\n\r\nbut 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\r\ni'm not sure it's good idea\r\n\r\n### solution 3\r\nAnother possible solution split it to 3 images \r\n1. restcomm/baseimage:java7\r\n2. restcomm/restcomm-base:as7\r\n3. restcomm/restcomm\r\n\r\nto build restcomm/restcomm-base:as7 we can download restcomm-connect AS7 and remove all wars from `deployments` except `sip-servlets` and `webrtc` and mediaserver\r\n\r\nso `restcomm/restcomm` will bring `restcomm`, `olympus`, `restcomm-management`, `visual-designer` and `mediaserer` apps only\r\n\r\n### solution 4\r\nAnother possible solution split it to 5 images \r\n1. restcomm/baseimage:java7\r\n2. restcomm/restcomm-base:as7 (`sip-servlets`, `webrtc`)\r\n3. restcomm/restcomm:as7 (`restcomm`, `restcomm-management`)\r\n4. restcomm/mediaserver:as7 (`mediaserver`)\r\n5. restcomm/olympus:as7 (`olympus`)\r\n\r\nand use docker compose to run `restcomm`\r\n\r\nto use all in one \r\n- restcomm/restcomm:aio (as now)\r\n\r\nWDYT?\r\n"}}
{"actor":{"display_login":"hamsterksu"}}