{"action":"created","comment":{"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments/43890533","id":43890533,"diff_hunk":"@@ -9,19 +8,21 @@ COPY Gemfile.lock /usr/src/app/\n COPY vendor/php-parser/composer.json /usr/src/app/vendor/php-parser/\n COPY vendor/php-parser/composer.lock /usr/src/app/vendor/php-parser/\n \n-RUN apk --update add openssh git python nodejs php-cli php-json php-phar php-openssl php-xml curl\\\n-    ruby ruby-io-console ruby-dev build-base && \\\n-    gem install bundler --no-ri --no-rdoc && \\\n+RUN curl --silent --location https://deb.nodesource.com/setup_5.x | bash -\n+RUN apt-get install -y nodejs python openssh-client php5-cli php5-json\n+RUN gem install bundler --no-ri --no-rdoc && \\\n     bundle install -j 4 && \\\n-    apk del build-base && rm -fr /usr/share/ri && \\\n     curl -sS https://getcomposer.org/installer | php\n+# RUN apk --update add openssh git python nodejs php-cli php-json php-phar php-openssl php-xml curl\\","path":"Dockerfile","position":20,"original_position":20,"commit_id":"09fdb9de719e5f35b2a9ce745d3ad204c861ffc7","original_commit_id":"09fdb9de719e5f35b2a9ce745d3ad204c861ffc7","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"body":"Oops, missed it.","created_at":"2015-11-04T15:04:54Z","updated_at":"2015-11-04T15:04:54Z","html_url":"https://github.com/codeclimate/codeclimate-duplication/pull/36#discussion_r43890533","pull_request_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments/43890533"},"html":{"href":"https://github.com/codeclimate/codeclimate-duplication/pull/36#discussion_r43890533"},"pull_request":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36","id":49697856,"html_url":"https://github.com/codeclimate/codeclimate-duplication/pull/36","diff_url":"https://github.com/codeclimate/codeclimate-duplication/pull/36.diff","patch_url":"https://github.com/codeclimate/codeclimate-duplication/pull/36.patch","issue_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/36","number":36,"state":"open","locked":false,"title":"Switch from MRI to JRuby","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"body":"To take full advantage of concurrent-ruby for faster analyses this\nreplaces MRI Ruby with JRuby since JRuby can take advantage of threads\nwithout being blocked by the GIL.\n\n* Replace posix-spawn with `IO.popen`\n* Replace alpine with `jruby:9.0-jdk` Docker image\n\nHere's a comparison of JRuby vs MRI on a medium sized JavaScript\nproject using the same concurrency value and same config.\n\nJRuby:\n\n```\ncodeclimate analyze --dev  0.29s user 0.22s system 0% cpu 2:26.03 total\n```\n\nMRI:\n\n```\ncodeclimate analyze --dev  0.35s user 0.29s system 0% cpu 3:54.92 total\n```","created_at":"2015-11-04T14:54:50Z","updated_at":"2015-11-04T15:04:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"027bdfd7170b33e5f90f1717993605a1f576ae3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36/commits","review_comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36/comments","review_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/36/comments","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/09fdb9de719e5f35b2a9ce745d3ad204c861ffc7","head":{"label":"codeclimate:bmw-jruby","ref":"bmw-jruby","sha":"09fdb9de719e5f35b2a9ce745d3ad204c861ffc7","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":41421994,"name":"codeclimate-duplication","full_name":"codeclimate/codeclimate-duplication","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/codeclimate-duplication","description":"Code Climate engine for code duplication analysis","fork":false,"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication","forks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/forks","keys_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/teams","hooks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/events","assignees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/tags","blobs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/languages","stargazers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscription","commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/merges","archive_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/downloads","issues_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/releases{/id}","created_at":"2015-08-26T11:29:43Z","updated_at":"2015-10-13T20:35:37Z","pushed_at":"2015-11-04T14:54:52Z","git_url":"git://github.com/codeclimate/codeclimate-duplication.git","ssh_url":"git@github.com:codeclimate/codeclimate-duplication.git","clone_url":"https://github.com/codeclimate/codeclimate-duplication.git","svn_url":"https://github.com/codeclimate/codeclimate-duplication","homepage":"http://codeclimate.com","size":1169,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"codeclimate:master","ref":"master","sha":"9e9fcd5fb22d4893d2cacbe18bf20cb0d1808ace","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":41421994,"name":"codeclimate-duplication","full_name":"codeclimate/codeclimate-duplication","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/codeclimate-duplication","description":"Code Climate engine for code duplication analysis","fork":false,"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication","forks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/forks","keys_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/teams","hooks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/events","assignees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/tags","blobs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/languages","stargazers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscription","commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/merges","archive_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/downloads","issues_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/releases{/id}","created_at":"2015-08-26T11:29:43Z","updated_at":"2015-10-13T20:35:37Z","pushed_at":"2015-11-04T14:54:52Z","git_url":"git://github.com/codeclimate/codeclimate-duplication.git","ssh_url":"git@github.com:codeclimate/codeclimate-duplication.git","clone_url":"https://github.com/codeclimate/codeclimate-duplication.git","svn_url":"https://github.com/codeclimate/codeclimate-duplication","homepage":"http://codeclimate.com","size":1169,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36"},"html":{"href":"https://github.com/codeclimate/codeclimate-duplication/pull/36"},"issue":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/36"},"comments":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/09fdb9de719e5f35b2a9ce745d3ad204c861ffc7"}}}}