{"action":"created","comment":{"url":"https://api.github.com/repos/wantedly/risu/pulls/comments/37163309","id":37163309,"diff_hunk":"@@ -51,10 +55,77 @@ func dockerBuild(build schema.Build) error {\n \treturn nil\n }\n \n+func dockerCopy(build schema.Build) (string, error) {","path":"docker.go","position":25,"original_position":25,"commit_id":"f19b42f3225eebe4ff80d5769be655ea83805d99","original_commit_id":"f19b42f3225eebe4ff80d5769be655ea83805d99","user":{"login":"spesnova","id":261700,"avatar_url":"https://avatars.githubusercontent.com/u/261700?v=3","gravatar_id":"","url":"https://api.github.com/users/spesnova","html_url":"https://github.com/spesnova","followers_url":"https://api.github.com/users/spesnova/followers","following_url":"https://api.github.com/users/spesnova/following{/other_user}","gists_url":"https://api.github.com/users/spesnova/gists{/gist_id}","starred_url":"https://api.github.com/users/spesnova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spesnova/subscriptions","organizations_url":"https://api.github.com/users/spesnova/orgs","repos_url":"https://api.github.com/users/spesnova/repos","events_url":"https://api.github.com/users/spesnova/events{/privacy}","received_events_url":"https://api.github.com/users/spesnova/received_events","type":"User","site_admin":false},"body":"I think `extractCache()` is better than `dockerCopy()`\r\n`docker copy` is just an internal process in extracting the cache. ","created_at":"2015-08-17T07:24:28Z","updated_at":"2015-08-17T07:24:28Z","html_url":"https://github.com/wantedly/risu/pull/51#discussion_r37163309","pull_request_url":"https://api.github.com/repos/wantedly/risu/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/wantedly/risu/pulls/comments/37163309"},"html":{"href":"https://github.com/wantedly/risu/pull/51#discussion_r37163309"},"pull_request":{"href":"https://api.github.com/repos/wantedly/risu/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/wantedly/risu/pulls/51","id":42468884,"html_url":"https://github.com/wantedly/risu/pull/51","diff_url":"https://github.com/wantedly/risu/pull/51.diff","patch_url":"https://github.com/wantedly/risu/pull/51.patch","issue_url":"https://api.github.com/repos/wantedly/risu/issues/51","number":51,"state":"open","locked":false,"title":"Refresh Cache","user":{"login":"dtan4","id":680124,"avatar_url":"https://avatars.githubusercontent.com/u/680124?v=3","gravatar_id":"","url":"https://api.github.com/users/dtan4","html_url":"https://github.com/dtan4","followers_url":"https://api.github.com/users/dtan4/followers","following_url":"https://api.github.com/users/dtan4/following{/other_user}","gists_url":"https://api.github.com/users/dtan4/gists{/gist_id}","starred_url":"https://api.github.com/users/dtan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtan4/subscriptions","organizations_url":"https://api.github.com/users/dtan4/orgs","repos_url":"https://api.github.com/users/dtan4/repos","events_url":"https://api.github.com/users/dtan4/events{/privacy}","received_events_url":"https://api.github.com/users/dtan4/received_events","type":"User","site_admin":false},"body":"## WHY\r\nTo refresh saved cache to new one\r\n\r\n## WHAT\r\nFetch files from image and put them to cache\r\n\r\n## TODO\r\n- [x] Fetch files from image (running container)\r\n- [x] Put files to cache\r\n","created_at":"2015-08-14T15:41:12Z","updated_at":"2015-08-17T07:24:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8593b962e58a34af7e4a88440e8a8f0927d9dd21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wantedly/risu/pulls/51/commits","review_comments_url":"https://api.github.com/repos/wantedly/risu/pulls/51/comments","review_comment_url":"https://api.github.com/repos/wantedly/risu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wantedly/risu/issues/51/comments","statuses_url":"https://api.github.com/repos/wantedly/risu/statuses/f19b42f3225eebe4ff80d5769be655ea83805d99","head":{"label":"wantedly:dtan4/push-cache","ref":"dtan4/push-cache","sha":"f19b42f3225eebe4ff80d5769be655ea83805d99","user":{"login":"wantedly","id":1030053,"avatar_url":"https://avatars.githubusercontent.com/u/1030053?v=3","gravatar_id":"","url":"https://api.github.com/users/wantedly","html_url":"https://github.com/wantedly","followers_url":"https://api.github.com/users/wantedly/followers","following_url":"https://api.github.com/users/wantedly/following{/other_user}","gists_url":"https://api.github.com/users/wantedly/gists{/gist_id}","starred_url":"https://api.github.com/users/wantedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wantedly/subscriptions","organizations_url":"https://api.github.com/users/wantedly/orgs","repos_url":"https://api.github.com/users/wantedly/repos","events_url":"https://api.github.com/users/wantedly/events{/privacy}","received_events_url":"https://api.github.com/users/wantedly/received_events","type":"Organization","site_admin":false},"repo":{"id":40286373,"name":"risu","full_name":"wantedly/risu","owner":{"login":"wantedly","id":1030053,"avatar_url":"https://avatars.githubusercontent.com/u/1030053?v=3","gravatar_id":"","url":"https://api.github.com/users/wantedly","html_url":"https://github.com/wantedly","followers_url":"https://api.github.com/users/wantedly/followers","following_url":"https://api.github.com/users/wantedly/following{/other_user}","gists_url":"https://api.github.com/users/wantedly/gists{/gist_id}","starred_url":"https://api.github.com/users/wantedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wantedly/subscriptions","organizations_url":"https://api.github.com/users/wantedly/orgs","repos_url":"https://api.github.com/users/wantedly/repos","events_url":"https://api.github.com/users/wantedly/events{/privacy}","received_events_url":"https://api.github.com/users/wantedly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wantedly/risu","description":"Rapid Image Supplying Unit","fork":false,"url":"https://api.github.com/repos/wantedly/risu","forks_url":"https://api.github.com/repos/wantedly/risu/forks","keys_url":"https://api.github.com/repos/wantedly/risu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wantedly/risu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wantedly/risu/teams","hooks_url":"https://api.github.com/repos/wantedly/risu/hooks","issue_events_url":"https://api.github.com/repos/wantedly/risu/issues/events{/number}","events_url":"https://api.github.com/repos/wantedly/risu/events","assignees_url":"https://api.github.com/repos/wantedly/risu/assignees{/user}","branches_url":"https://api.github.com/repos/wantedly/risu/branches{/branch}","tags_url":"https://api.github.com/repos/wantedly/risu/tags","blobs_url":"https://api.github.com/repos/wantedly/risu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wantedly/risu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wantedly/risu/git/refs{/sha}","trees_url":"https://api.github.com/repos/wantedly/risu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wantedly/risu/statuses/{sha}","languages_url":"https://api.github.com/repos/wantedly/risu/languages","stargazers_url":"https://api.github.com/repos/wantedly/risu/stargazers","contributors_url":"https://api.github.com/repos/wantedly/risu/contributors","subscribers_url":"https://api.github.com/repos/wantedly/risu/subscribers","subscription_url":"https://api.github.com/repos/wantedly/risu/subscription","commits_url":"https://api.github.com/repos/wantedly/risu/commits{/sha}","git_commits_url":"https://api.github.com/repos/wantedly/risu/git/commits{/sha}","comments_url":"https://api.github.com/repos/wantedly/risu/comments{/number}","issue_comment_url":"https://api.github.com/repos/wantedly/risu/issues/comments{/number}","contents_url":"https://api.github.com/repos/wantedly/risu/contents/{+path}","compare_url":"https://api.github.com/repos/wantedly/risu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wantedly/risu/merges","archive_url":"https://api.github.com/repos/wantedly/risu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wantedly/risu/downloads","issues_url":"https://api.github.com/repos/wantedly/risu/issues{/number}","pulls_url":"https://api.github.com/repos/wantedly/risu/pulls{/number}","milestones_url":"https://api.github.com/repos/wantedly/risu/milestones{/number}","notifications_url":"https://api.github.com/repos/wantedly/risu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wantedly/risu/labels{/name}","releases_url":"https://api.github.com/repos/wantedly/risu/releases{/id}","created_at":"2015-08-06T05:29:42Z","updated_at":"2015-08-14T13:59:45Z","pushed_at":"2015-08-17T07:14:43Z","git_url":"git://github.com/wantedly/risu.git","ssh_url":"git@github.com:wantedly/risu.git","clone_url":"https://github.com/wantedly/risu.git","svn_url":"https://github.com/wantedly/risu","homepage":"","size":1888,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"wantedly:master","ref":"master","sha":"61fbd9bd126c9fddf661c9c2b942f4971c097d58","user":{"login":"wantedly","id":1030053,"avatar_url":"https://avatars.githubusercontent.com/u/1030053?v=3","gravatar_id":"","url":"https://api.github.com/users/wantedly","html_url":"https://github.com/wantedly","followers_url":"https://api.github.com/users/wantedly/followers","following_url":"https://api.github.com/users/wantedly/following{/other_user}","gists_url":"https://api.github.com/users/wantedly/gists{/gist_id}","starred_url":"https://api.github.com/users/wantedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wantedly/subscriptions","organizations_url":"https://api.github.com/users/wantedly/orgs","repos_url":"https://api.github.com/users/wantedly/repos","events_url":"https://api.github.com/users/wantedly/events{/privacy}","received_events_url":"https://api.github.com/users/wantedly/received_events","type":"Organization","site_admin":false},"repo":{"id":40286373,"name":"risu","full_name":"wantedly/risu","owner":{"login":"wantedly","id":1030053,"avatar_url":"https://avatars.githubusercontent.com/u/1030053?v=3","gravatar_id":"","url":"https://api.github.com/users/wantedly","html_url":"https://github.com/wantedly","followers_url":"https://api.github.com/users/wantedly/followers","following_url":"https://api.github.com/users/wantedly/following{/other_user}","gists_url":"https://api.github.com/users/wantedly/gists{/gist_id}","starred_url":"https://api.github.com/users/wantedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wantedly/subscriptions","organizations_url":"https://api.github.com/users/wantedly/orgs","repos_url":"https://api.github.com/users/wantedly/repos","events_url":"https://api.github.com/users/wantedly/events{/privacy}","received_events_url":"https://api.github.com/users/wantedly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wantedly/risu","description":"Rapid Image Supplying Unit","fork":false,"url":"https://api.github.com/repos/wantedly/risu","forks_url":"https://api.github.com/repos/wantedly/risu/forks","keys_url":"https://api.github.com/repos/wantedly/risu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wantedly/risu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wantedly/risu/teams","hooks_url":"https://api.github.com/repos/wantedly/risu/hooks","issue_events_url":"https://api.github.com/repos/wantedly/risu/issues/events{/number}","events_url":"https://api.github.com/repos/wantedly/risu/events","assignees_url":"https://api.github.com/repos/wantedly/risu/assignees{/user}","branches_url":"https://api.github.com/repos/wantedly/risu/branches{/branch}","tags_url":"https://api.github.com/repos/wantedly/risu/tags","blobs_url":"https://api.github.com/repos/wantedly/risu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wantedly/risu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wantedly/risu/git/refs{/sha}","trees_url":"https://api.github.com/repos/wantedly/risu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wantedly/risu/statuses/{sha}","languages_url":"https://api.github.com/repos/wantedly/risu/languages","stargazers_url":"https://api.github.com/repos/wantedly/risu/stargazers","contributors_url":"https://api.github.com/repos/wantedly/risu/contributors","subscribers_url":"https://api.github.com/repos/wantedly/risu/subscribers","subscription_url":"https://api.github.com/repos/wantedly/risu/subscription","commits_url":"https://api.github.com/repos/wantedly/risu/commits{/sha}","git_commits_url":"https://api.github.com/repos/wantedly/risu/git/commits{/sha}","comments_url":"https://api.github.com/repos/wantedly/risu/comments{/number}","issue_comment_url":"https://api.github.com/repos/wantedly/risu/issues/comments{/number}","contents_url":"https://api.github.com/repos/wantedly/risu/contents/{+path}","compare_url":"https://api.github.com/repos/wantedly/risu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wantedly/risu/merges","archive_url":"https://api.github.com/repos/wantedly/risu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wantedly/risu/downloads","issues_url":"https://api.github.com/repos/wantedly/risu/issues{/number}","pulls_url":"https://api.github.com/repos/wantedly/risu/pulls{/number}","milestones_url":"https://api.github.com/repos/wantedly/risu/milestones{/number}","notifications_url":"https://api.github.com/repos/wantedly/risu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wantedly/risu/labels{/name}","releases_url":"https://api.github.com/repos/wantedly/risu/releases{/id}","created_at":"2015-08-06T05:29:42Z","updated_at":"2015-08-14T13:59:45Z","pushed_at":"2015-08-17T07:14:43Z","git_url":"git://github.com/wantedly/risu.git","ssh_url":"git@github.com:wantedly/risu.git","clone_url":"https://github.com/wantedly/risu.git","svn_url":"https://github.com/wantedly/risu","homepage":"","size":1888,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wantedly/risu/pulls/51"},"html":{"href":"https://github.com/wantedly/risu/pull/51"},"issue":{"href":"https://api.github.com/repos/wantedly/risu/issues/51"},"comments":{"href":"https://api.github.com/repos/wantedly/risu/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/wantedly/risu/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/wantedly/risu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wantedly/risu/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/wantedly/risu/statuses/f19b42f3225eebe4ff80d5769be655ea83805d99"}}}}