{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/kamito/dockers/pulls/3","id":28654479,"html_url":"https://github.com/kamito/dockers/pull/3","diff_url":"https://github.com/kamito/dockers/pull/3.diff","patch_url":"https://github.com/kamito/dockers/pull/3.patch","issue_url":"https://api.github.com/repos/kamito/dockers/issues/3","number":3,"state":"closed","locked":false,"title":"reduce image size and speed up building image","user":{"login":"minimum2scp","id":162862,"avatar_url":"https://avatars.githubusercontent.com/u/162862?v=3","gravatar_id":"","url":"https://api.github.com/users/minimum2scp","html_url":"https://github.com/minimum2scp","followers_url":"https://api.github.com/users/minimum2scp/followers","following_url":"https://api.github.com/users/minimum2scp/following{/other_user}","gists_url":"https://api.github.com/users/minimum2scp/gists{/gist_id}","starred_url":"https://api.github.com/users/minimum2scp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minimum2scp/subscriptions","organizations_url":"https://api.github.com/users/minimum2scp/orgs","repos_url":"https://api.github.com/users/minimum2scp/repos","events_url":"https://api.github.com/users/minimum2scp/events{/privacy}","received_events_url":"https://api.github.com/users/minimum2scp/received_events","type":"User","site_admin":false},"body":"### build time comparison\r\n\r\n24 min 8 seconds (master branch) -> 10 min 12 seconds (feature/reduce-size branch)\r\n\r\n```\r\ncd erlang/debian/17.4-with-protobuffs/\r\ngit checkout master\r\n(date ; echo ''; docker build --no-cache=true -t erlang-17.4-with-protobuffs-master .; echo ''; date) | tee /tmp/master.log\r\ngit checkout feature/reduce-size\r\n(date ; echo ''; docker build --no-cache=true -t erlang-17.4-with-protobuffs-reduced .; echo ''; date) | tee /tmp/reduced.log\r\n```\r\n\r\n\r\n### image size comparison\r\n\r\n1.397 GB (master branch) -> 784.5 MB (feature/reduce-size branch)\r\n\r\n```\r\n% docker images | grep erlang-17.4-with-protobuffs-\r\nerlang-17.4-with-protobuffs-reduced   latest              b0d29f898af5        49 seconds ago      784.5 MB\r\nerlang-17.4-with-protobuffs-master    latest              5f54ae559bfd        14 minutes ago      1.397 GB\r\n```\r\n","created_at":"2015-02-04T16:53:45Z","updated_at":"2015-02-09T01:54:45Z","closed_at":"2015-02-09T01:54:45Z","merged_at":"2015-02-09T01:54:45Z","merge_commit_sha":"a9c3fe410d0f0f95f01f50b6d1f6ccff72612355","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kamito/dockers/pulls/3/commits","review_comments_url":"https://api.github.com/repos/kamito/dockers/pulls/3/comments","review_comment_url":"https://api.github.com/repos/kamito/dockers/pulls/comments/{number}","comments_url":"https://api.github.com/repos/kamito/dockers/issues/3/comments","statuses_url":"https://api.github.com/repos/kamito/dockers/statuses/4139d28bb6a8d55fdf167d2971c92b2c39a4fae9","head":{"label":"minimum2scp:feature/reduce-size","ref":"feature/reduce-size","sha":"4139d28bb6a8d55fdf167d2971c92b2c39a4fae9","user":{"login":"minimum2scp","id":162862,"avatar_url":"https://avatars.githubusercontent.com/u/162862?v=3","gravatar_id":"","url":"https://api.github.com/users/minimum2scp","html_url":"https://github.com/minimum2scp","followers_url":"https://api.github.com/users/minimum2scp/followers","following_url":"https://api.github.com/users/minimum2scp/following{/other_user}","gists_url":"https://api.github.com/users/minimum2scp/gists{/gist_id}","starred_url":"https://api.github.com/users/minimum2scp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minimum2scp/subscriptions","organizations_url":"https://api.github.com/users/minimum2scp/orgs","repos_url":"https://api.github.com/users/minimum2scp/repos","events_url":"https://api.github.com/users/minimum2scp/events{/privacy}","received_events_url":"https://api.github.com/users/minimum2scp/received_events","type":"User","site_admin":false},"repo":{"id":30304803,"name":"dockers","full_name":"minimum2scp/dockers","owner":{"login":"minimum2scp","id":162862,"avatar_url":"https://avatars.githubusercontent.com/u/162862?v=3","gravatar_id":"","url":"https://api.github.com/users/minimum2scp","html_url":"https://github.com/minimum2scp","followers_url":"https://api.github.com/users/minimum2scp/followers","following_url":"https://api.github.com/users/minimum2scp/following{/other_user}","gists_url":"https://api.github.com/users/minimum2scp/gists{/gist_id}","starred_url":"https://api.github.com/users/minimum2scp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minimum2scp/subscriptions","organizations_url":"https://api.github.com/users/minimum2scp/orgs","repos_url":"https://api.github.com/users/minimum2scp/repos","events_url":"https://api.github.com/users/minimum2scp/events{/privacy}","received_events_url":"https://api.github.com/users/minimum2scp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minimum2scp/dockers","description":"My Dockerfiles","fork":true,"url":"https://api.github.com/repos/minimum2scp/dockers","forks_url":"https://api.github.com/repos/minimum2scp/dockers/forks","keys_url":"https://api.github.com/repos/minimum2scp/dockers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minimum2scp/dockers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minimum2scp/dockers/teams","hooks_url":"https://api.github.com/repos/minimum2scp/dockers/hooks","issue_events_url":"https://api.github.com/repos/minimum2scp/dockers/issues/events{/number}","events_url":"https://api.github.com/repos/minimum2scp/dockers/events","assignees_url":"https://api.github.com/repos/minimum2scp/dockers/assignees{/user}","branches_url":"https://api.github.com/repos/minimum2scp/dockers/branches{/branch}","tags_url":"https://api.github.com/repos/minimum2scp/dockers/tags","blobs_url":"https://api.github.com/repos/minimum2scp/dockers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minimum2scp/dockers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minimum2scp/dockers/git/refs{/sha}","trees_url":"https://api.github.com/repos/minimum2scp/dockers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minimum2scp/dockers/statuses/{sha}","languages_url":"https://api.github.com/repos/minimum2scp/dockers/languages","stargazers_url":"https://api.github.com/repos/minimum2scp/dockers/stargazers","contributors_url":"https://api.github.com/repos/minimum2scp/dockers/contributors","subscribers_url":"https://api.github.com/repos/minimum2scp/dockers/subscribers","subscription_url":"https://api.github.com/repos/minimum2scp/dockers/subscription","commits_url":"https://api.github.com/repos/minimum2scp/dockers/commits{/sha}","git_commits_url":"https://api.github.com/repos/minimum2scp/dockers/git/commits{/sha}","comments_url":"https://api.github.com/repos/minimum2scp/dockers/comments{/number}","issue_comment_url":"https://api.github.com/repos/minimum2scp/dockers/issues/comments/{number}","contents_url":"https://api.github.com/repos/minimum2scp/dockers/contents/{+path}","compare_url":"https://api.github.com/repos/minimum2scp/dockers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minimum2scp/dockers/merges","archive_url":"https://api.github.com/repos/minimum2scp/dockers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minimum2scp/dockers/downloads","issues_url":"https://api.github.com/repos/minimum2scp/dockers/issues{/number}","pulls_url":"https://api.github.com/repos/minimum2scp/dockers/pulls{/number}","milestones_url":"https://api.github.com/repos/minimum2scp/dockers/milestones{/number}","notifications_url":"https://api.github.com/repos/minimum2scp/dockers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minimum2scp/dockers/labels{/name}","releases_url":"https://api.github.com/repos/minimum2scp/dockers/releases{/id}","created_at":"2015-02-04T15:12:50Z","updated_at":"2015-02-04T05:02:13Z","pushed_at":"2015-02-06T11:03:44Z","git_url":"git://github.com/minimum2scp/dockers.git","ssh_url":"git@github.com:minimum2scp/dockers.git","clone_url":"https://github.com/minimum2scp/dockers.git","svn_url":"https://github.com/minimum2scp/dockers","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kamito:master","ref":"master","sha":"befae76dde18842bba2d73163883f86ff7287df6","user":{"login":"kamito","id":34214,"avatar_url":"https://avatars.githubusercontent.com/u/34214?v=3","gravatar_id":"","url":"https://api.github.com/users/kamito","html_url":"https://github.com/kamito","followers_url":"https://api.github.com/users/kamito/followers","following_url":"https://api.github.com/users/kamito/following{/other_user}","gists_url":"https://api.github.com/users/kamito/gists{/gist_id}","starred_url":"https://api.github.com/users/kamito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamito/subscriptions","organizations_url":"https://api.github.com/users/kamito/orgs","repos_url":"https://api.github.com/users/kamito/repos","events_url":"https://api.github.com/users/kamito/events{/privacy}","received_events_url":"https://api.github.com/users/kamito/received_events","type":"User","site_admin":false},"repo":{"id":20255263,"name":"dockers","full_name":"kamito/dockers","owner":{"login":"kamito","id":34214,"avatar_url":"https://avatars.githubusercontent.com/u/34214?v=3","gravatar_id":"","url":"https://api.github.com/users/kamito","html_url":"https://github.com/kamito","followers_url":"https://api.github.com/users/kamito/followers","following_url":"https://api.github.com/users/kamito/following{/other_user}","gists_url":"https://api.github.com/users/kamito/gists{/gist_id}","starred_url":"https://api.github.com/users/kamito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamito/subscriptions","organizations_url":"https://api.github.com/users/kamito/orgs","repos_url":"https://api.github.com/users/kamito/repos","events_url":"https://api.github.com/users/kamito/events{/privacy}","received_events_url":"https://api.github.com/users/kamito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamito/dockers","description":"My Dockerfiles","fork":false,"url":"https://api.github.com/repos/kamito/dockers","forks_url":"https://api.github.com/repos/kamito/dockers/forks","keys_url":"https://api.github.com/repos/kamito/dockers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamito/dockers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamito/dockers/teams","hooks_url":"https://api.github.com/repos/kamito/dockers/hooks","issue_events_url":"https://api.github.com/repos/kamito/dockers/issues/events{/number}","events_url":"https://api.github.com/repos/kamito/dockers/events","assignees_url":"https://api.github.com/repos/kamito/dockers/assignees{/user}","branches_url":"https://api.github.com/repos/kamito/dockers/branches{/branch}","tags_url":"https://api.github.com/repos/kamito/dockers/tags","blobs_url":"https://api.github.com/repos/kamito/dockers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamito/dockers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamito/dockers/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamito/dockers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamito/dockers/statuses/{sha}","languages_url":"https://api.github.com/repos/kamito/dockers/languages","stargazers_url":"https://api.github.com/repos/kamito/dockers/stargazers","contributors_url":"https://api.github.com/repos/kamito/dockers/contributors","subscribers_url":"https://api.github.com/repos/kamito/dockers/subscribers","subscription_url":"https://api.github.com/repos/kamito/dockers/subscription","commits_url":"https://api.github.com/repos/kamito/dockers/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamito/dockers/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamito/dockers/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamito/dockers/issues/comments/{number}","contents_url":"https://api.github.com/repos/kamito/dockers/contents/{+path}","compare_url":"https://api.github.com/repos/kamito/dockers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamito/dockers/merges","archive_url":"https://api.github.com/repos/kamito/dockers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamito/dockers/downloads","issues_url":"https://api.github.com/repos/kamito/dockers/issues{/number}","pulls_url":"https://api.github.com/repos/kamito/dockers/pulls{/number}","milestones_url":"https://api.github.com/repos/kamito/dockers/milestones{/number}","notifications_url":"https://api.github.com/repos/kamito/dockers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamito/dockers/labels{/name}","releases_url":"https://api.github.com/repos/kamito/dockers/releases{/id}","created_at":"2014-05-28T11:38:00Z","updated_at":"2015-02-04T05:02:13Z","pushed_at":"2015-02-09T01:54:46Z","git_url":"git://github.com/kamito/dockers.git","ssh_url":"git@github.com:kamito/dockers.git","clone_url":"https://github.com/kamito/dockers.git","svn_url":"https://github.com/kamito/dockers","homepage":null,"size":224,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kamito/dockers/pulls/3"},"html":{"href":"https://github.com/kamito/dockers/pull/3"},"issue":{"href":"https://api.github.com/repos/kamito/dockers/issues/3"},"comments":{"href":"https://api.github.com/repos/kamito/dockers/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/kamito/dockers/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/kamito/dockers/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/kamito/dockers/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/kamito/dockers/statuses/4139d28bb6a8d55fdf167d2971c92b2c39a4fae9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kamito","id":34214,"avatar_url":"https://avatars.githubusercontent.com/u/34214?v=3","gravatar_id":"","url":"https://api.github.com/users/kamito","html_url":"https://github.com/kamito","followers_url":"https://api.github.com/users/kamito/followers","following_url":"https://api.github.com/users/kamito/following{/other_user}","gists_url":"https://api.github.com/users/kamito/gists{/gist_id}","starred_url":"https://api.github.com/users/kamito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamito/subscriptions","organizations_url":"https://api.github.com/users/kamito/orgs","repos_url":"https://api.github.com/users/kamito/repos","events_url":"https://api.github.com/users/kamito/events{/privacy}","received_events_url":"https://api.github.com/users/kamito/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":28,"deletions":20,"changed_files":1}}