{"action":"created","comment":{"url":"https://api.github.com/repos/elifesciences/api-dummy/pulls/comments/168213933","pull_request_review_id":96544404,"id":168213933,"diff_hunk":"@@ -0,0 +1,17 @@\n+ARG commit=latest\n+FROM elifesciences/proofreader-php:latest AS proofreader\n+FROM elifesciences/api-dummy:${commit}\n+ENV DEBUG=1\n+\n+USER elife\n+COPY --from=proofreader --chown=elife:elife /srv/proofreader-php /srv/proofreader-php\n+RUN ln -s /srv/proofreader-php/bin/proofreader /srv/bin/proofreader","path":"Dockerfile.ci","position":8,"original_position":8,"commit_id":"302cc56d0f82d42037bca7923683b4424a038346","original_commit_id":"302cc56d0f82d42037bca7923683b4424a038346","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars3.githubusercontent.com/u/160299?v=4","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"body":"The `elifesciences/proofreader-php` image contains everything pre-built, so the minimal step here is to copy the `/srv/proofreader-php` folder from there. Then a symlink is useful to just use `proofreader ...` as a command.\r\n\r\nPossible further extractions could be:\r\n- `COPY` the symlink and substitute the `RUN` step with it (1 line per 1 line)\r\n- `RUN` some script instead that wraps `ln -s` (1 line per 1 line)","created_at":"2018-02-14T15:42:12Z","updated_at":"2018-02-14T15:42:13Z","html_url":"https://github.com/elifesciences/api-dummy/pull/127#discussion_r168213933","pull_request_url":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/elifesciences/api-dummy/pulls/comments/168213933"},"html":{"href":"https://github.com/elifesciences/api-dummy/pull/127#discussion_r168213933"},"pull_request":{"href":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127"}},"in_reply_to_id":168210565},"pull_request":{"url":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127","id":168290339,"html_url":"https://github.com/elifesciences/api-dummy/pull/127","diff_url":"https://github.com/elifesciences/api-dummy/pull/127.diff","patch_url":"https://github.com/elifesciences/api-dummy/pull/127.patch","issue_url":"https://api.github.com/repos/elifesciences/api-dummy/issues/127","number":127,"state":"open","locked":false,"title":"Run ci with a container","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars3.githubusercontent.com/u/160299?v=4","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"body":"Removes `api-dummy--ci` yet.\r\n\r\nSmoke tests are a low concern with this setup, and should be dealt with by `dockerProjectTests` later.","created_at":"2018-02-09T16:53:24Z","updated_at":"2018-02-14T15:42:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b058d5ce59aaeb8de6f62a6687501cdd873f02f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127/commits","review_comments_url":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127/comments","review_comment_url":"https://api.github.com/repos/elifesciences/api-dummy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elifesciences/api-dummy/issues/127/comments","statuses_url":"https://api.github.com/repos/elifesciences/api-dummy/statuses/302cc56d0f82d42037bca7923683b4424a038346","head":{"label":"elifesciences:run_ci_container","ref":"run_ci_container","sha":"302cc56d0f82d42037bca7923683b4424a038346","user":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":57952598,"name":"api-dummy","full_name":"elifesciences/api-dummy","owner":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elifesciences/api-dummy","description":"Dummy implementation of the eLife Sciences API","fork":false,"url":"https://api.github.com/repos/elifesciences/api-dummy","forks_url":"https://api.github.com/repos/elifesciences/api-dummy/forks","keys_url":"https://api.github.com/repos/elifesciences/api-dummy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/api-dummy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/api-dummy/teams","hooks_url":"https://api.github.com/repos/elifesciences/api-dummy/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/api-dummy/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/api-dummy/events","assignees_url":"https://api.github.com/repos/elifesciences/api-dummy/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/api-dummy/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/api-dummy/tags","blobs_url":"https://api.github.com/repos/elifesciences/api-dummy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/api-dummy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/api-dummy/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/api-dummy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/api-dummy/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/api-dummy/languages","stargazers_url":"https://api.github.com/repos/elifesciences/api-dummy/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/api-dummy/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/api-dummy/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/api-dummy/subscription","commits_url":"https://api.github.com/repos/elifesciences/api-dummy/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/api-dummy/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/api-dummy/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/api-dummy/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/api-dummy/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/api-dummy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/api-dummy/merges","archive_url":"https://api.github.com/repos/elifesciences/api-dummy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/api-dummy/downloads","issues_url":"https://api.github.com/repos/elifesciences/api-dummy/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/api-dummy/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/api-dummy/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/api-dummy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/api-dummy/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/api-dummy/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/api-dummy/deployments","created_at":"2016-05-03T08:10:38Z","updated_at":"2017-09-11T09:59:28Z","pushed_at":"2018-02-14T15:23:10Z","git_url":"git://github.com/elifesciences/api-dummy.git","ssh_url":"git@github.com:elifesciences/api-dummy.git","clone_url":"https://github.com/elifesciences/api-dummy.git","svn_url":"https://github.com/elifesciences/api-dummy","homepage":"","size":5180,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"elifesciences:develop","ref":"develop","sha":"216a7fefb1e0da0ff8266c2708ae95cfc2d95b2b","user":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":57952598,"name":"api-dummy","full_name":"elifesciences/api-dummy","owner":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elifesciences/api-dummy","description":"Dummy implementation of the eLife Sciences API","fork":false,"url":"https://api.github.com/repos/elifesciences/api-dummy","forks_url":"https://api.github.com/repos/elifesciences/api-dummy/forks","keys_url":"https://api.github.com/repos/elifesciences/api-dummy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/api-dummy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/api-dummy/teams","hooks_url":"https://api.github.com/repos/elifesciences/api-dummy/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/api-dummy/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/api-dummy/events","assignees_url":"https://api.github.com/repos/elifesciences/api-dummy/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/api-dummy/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/api-dummy/tags","blobs_url":"https://api.github.com/repos/elifesciences/api-dummy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/api-dummy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/api-dummy/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/api-dummy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/api-dummy/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/api-dummy/languages","stargazers_url":"https://api.github.com/repos/elifesciences/api-dummy/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/api-dummy/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/api-dummy/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/api-dummy/subscription","commits_url":"https://api.github.com/repos/elifesciences/api-dummy/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/api-dummy/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/api-dummy/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/api-dummy/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/api-dummy/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/api-dummy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/api-dummy/merges","archive_url":"https://api.github.com/repos/elifesciences/api-dummy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/api-dummy/downloads","issues_url":"https://api.github.com/repos/elifesciences/api-dummy/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/api-dummy/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/api-dummy/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/api-dummy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/api-dummy/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/api-dummy/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/api-dummy/deployments","created_at":"2016-05-03T08:10:38Z","updated_at":"2017-09-11T09:59:28Z","pushed_at":"2018-02-14T15:23:10Z","git_url":"git://github.com/elifesciences/api-dummy.git","ssh_url":"git@github.com:elifesciences/api-dummy.git","clone_url":"https://github.com/elifesciences/api-dummy.git","svn_url":"https://github.com/elifesciences/api-dummy","homepage":"","size":5180,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127"},"html":{"href":"https://github.com/elifesciences/api-dummy/pull/127"},"issue":{"href":"https://api.github.com/repos/elifesciences/api-dummy/issues/127"},"comments":{"href":"https://api.github.com/repos/elifesciences/api-dummy/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/elifesciences/api-dummy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elifesciences/api-dummy/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/elifesciences/api-dummy/statuses/302cc56d0f82d42037bca7923683b4424a038346"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"giorgiosironi"}}