{"action":"created","comment":{"url":"https://api.github.com/repos/voxmedia/autotune/pulls/comments/60761866","id":60761866,"diff_hunk":"@@ -3,7 +3,7 @@ services:\n   redis:\n     image: redis:3.0\n   app:\n-    build: .\n+    image: voxmedia/docker_base_images:ruby_2.2-0.1","path":"docker-compose.yml","position":null,"original_position":5,"commit_id":"9629b0c75feafb14daf042a2da7524e87490945c","original_commit_id":"9d32dc080780331f08a711078ef777f3773416a3","user":{"login":"clifff","id":51312,"avatar_url":"https://avatars.githubusercontent.com/u/51312?v=3","gravatar_id":"","url":"https://api.github.com/users/clifff","html_url":"https://github.com/clifff","followers_url":"https://api.github.com/users/clifff/followers","following_url":"https://api.github.com/users/clifff/following{/other_user}","gists_url":"https://api.github.com/users/clifff/gists{/gist_id}","starred_url":"https://api.github.com/users/clifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clifff/subscriptions","organizations_url":"https://api.github.com/users/clifff/orgs","repos_url":"https://api.github.com/users/clifff/repos","events_url":"https://api.github.com/users/clifff/events{/privacy}","received_events_url":"https://api.github.com/users/clifff/received_events","type":"User","site_admin":false},"body":"Yup! This image is based on the `ruby:2.2.2` image. The Dockerfile for that is here: https://github.com/voxmedia/docker_base_images/blob/master/ruby/2.2/Dockerfile","created_at":"2016-04-22T15:57:35Z","updated_at":"2016-04-22T15:57:35Z","html_url":"https://github.com/voxmedia/autotune/pull/334#discussion_r60761866","pull_request_url":"https://api.github.com/repos/voxmedia/autotune/pulls/334","_links":{"self":{"href":"https://api.github.com/repos/voxmedia/autotune/pulls/comments/60761866"},"html":{"href":"https://github.com/voxmedia/autotune/pull/334#discussion_r60761866"},"pull_request":{"href":"https://api.github.com/repos/voxmedia/autotune/pulls/334"}}},"pull_request":{"url":"https://api.github.com/repos/voxmedia/autotune/pulls/334","id":67265665,"html_url":"https://github.com/voxmedia/autotune/pull/334","diff_url":"https://github.com/voxmedia/autotune/pull/334.diff","patch_url":"https://github.com/voxmedia/autotune/pull/334.patch","issue_url":"https://api.github.com/repos/voxmedia/autotune/issues/334","number":334,"state":"open","locked":false,"title":"Dockerized Test Suite","user":{"login":"clifff","id":51312,"avatar_url":"https://avatars.githubusercontent.com/u/51312?v=3","gravatar_id":"","url":"https://api.github.com/users/clifff","html_url":"https://github.com/clifff","followers_url":"https://api.github.com/users/clifff/followers","following_url":"https://api.github.com/users/clifff/following{/other_user}","gists_url":"https://api.github.com/users/clifff/gists{/gist_id}","starred_url":"https://api.github.com/users/clifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clifff/subscriptions","organizations_url":"https://api.github.com/users/clifff/orgs","repos_url":"https://api.github.com/users/clifff/repos","events_url":"https://api.github.com/users/clifff/events{/privacy}","received_events_url":"https://api.github.com/users/clifff/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n\r\nHypothetically, it would be pretty great if every test suite than ran on a Jenkins server had a self contained environment to put it's dependencies in rather than installing dependencies for every application on the Jenkins host. Less hypothetically, this PR adds some facilities to do such a thing.\r\n\r\nAssuming you have docker installed, tests can now be run with a simple `bin/test_docker_build.sh`\r\n\r\n### Notable Changes\r\n\r\nSome changes were made to `WorkDir`, specifically so that `GEM_PATH` can be injected into it's environment. In testing, we were seeing that the `bundler` gem wasn't available in `gem list`, which makes sense, because when tests are executed within `bundle exec`, only Gems in that bundle are available, and Bundler generally isn't actually listed in bundles. \r\n\r\n### Meme\r\n\r\n![](http://i.kinja-img.com/gawker-media/image/upload/s--ymAgEUoD--/c_fit,fl_progressive,q_80,w_636/19gtqsv3yynurjpg.jpg)\r\n_me trying to figure out gem paths inside a ruby process inside bundler inside docker_","created_at":"2016-04-20T21:59:42Z","updated_at":"2016-04-22T15:57:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b06deac7d61733262288fb3ca138baab88fd6f3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/voxmedia/autotune/pulls/334/commits","review_comments_url":"https://api.github.com/repos/voxmedia/autotune/pulls/334/comments","review_comment_url":"https://api.github.com/repos/voxmedia/autotune/pulls/comments{/number}","comments_url":"https://api.github.com/repos/voxmedia/autotune/issues/334/comments","statuses_url":"https://api.github.com/repos/voxmedia/autotune/statuses/9629b0c75feafb14daf042a2da7524e87490945c","head":{"label":"voxmedia:hazmat_docker_tests","ref":"hazmat_docker_tests","sha":"9629b0c75feafb14daf042a2da7524e87490945c","user":{"login":"voxmedia","id":316807,"avatar_url":"https://avatars.githubusercontent.com/u/316807?v=3","gravatar_id":"","url":"https://api.github.com/users/voxmedia","html_url":"https://github.com/voxmedia","followers_url":"https://api.github.com/users/voxmedia/followers","following_url":"https://api.github.com/users/voxmedia/following{/other_user}","gists_url":"https://api.github.com/users/voxmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/voxmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxmedia/subscriptions","organizations_url":"https://api.github.com/users/voxmedia/orgs","repos_url":"https://api.github.com/users/voxmedia/repos","events_url":"https://api.github.com/users/voxmedia/events{/privacy}","received_events_url":"https://api.github.com/users/voxmedia/received_events","type":"Organization","site_admin":false},"repo":{"id":30308932,"name":"autotune","full_name":"voxmedia/autotune","owner":{"login":"voxmedia","id":316807,"avatar_url":"https://avatars.githubusercontent.com/u/316807?v=3","gravatar_id":"","url":"https://api.github.com/users/voxmedia","html_url":"https://github.com/voxmedia","followers_url":"https://api.github.com/users/voxmedia/followers","following_url":"https://api.github.com/users/voxmedia/following{/other_user}","gists_url":"https://api.github.com/users/voxmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/voxmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxmedia/subscriptions","organizations_url":"https://api.github.com/users/voxmedia/orgs","repos_url":"https://api.github.com/users/voxmedia/repos","events_url":"https://api.github.com/users/voxmedia/events{/privacy}","received_events_url":"https://api.github.com/users/voxmedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/voxmedia/autotune","description":"Platform for reusable news tools","fork":false,"url":"https://api.github.com/repos/voxmedia/autotune","forks_url":"https://api.github.com/repos/voxmedia/autotune/forks","keys_url":"https://api.github.com/repos/voxmedia/autotune/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voxmedia/autotune/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voxmedia/autotune/teams","hooks_url":"https://api.github.com/repos/voxmedia/autotune/hooks","issue_events_url":"https://api.github.com/repos/voxmedia/autotune/issues/events{/number}","events_url":"https://api.github.com/repos/voxmedia/autotune/events","assignees_url":"https://api.github.com/repos/voxmedia/autotune/assignees{/user}","branches_url":"https://api.github.com/repos/voxmedia/autotune/branches{/branch}","tags_url":"https://api.github.com/repos/voxmedia/autotune/tags","blobs_url":"https://api.github.com/repos/voxmedia/autotune/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voxmedia/autotune/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voxmedia/autotune/git/refs{/sha}","trees_url":"https://api.github.com/repos/voxmedia/autotune/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voxmedia/autotune/statuses/{sha}","languages_url":"https://api.github.com/repos/voxmedia/autotune/languages","stargazers_url":"https://api.github.com/repos/voxmedia/autotune/stargazers","contributors_url":"https://api.github.com/repos/voxmedia/autotune/contributors","subscribers_url":"https://api.github.com/repos/voxmedia/autotune/subscribers","subscription_url":"https://api.github.com/repos/voxmedia/autotune/subscription","commits_url":"https://api.github.com/repos/voxmedia/autotune/commits{/sha}","git_commits_url":"https://api.github.com/repos/voxmedia/autotune/git/commits{/sha}","comments_url":"https://api.github.com/repos/voxmedia/autotune/comments{/number}","issue_comment_url":"https://api.github.com/repos/voxmedia/autotune/issues/comments{/number}","contents_url":"https://api.github.com/repos/voxmedia/autotune/contents/{+path}","compare_url":"https://api.github.com/repos/voxmedia/autotune/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voxmedia/autotune/merges","archive_url":"https://api.github.com/repos/voxmedia/autotune/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voxmedia/autotune/downloads","issues_url":"https://api.github.com/repos/voxmedia/autotune/issues{/number}","pulls_url":"https://api.github.com/repos/voxmedia/autotune/pulls{/number}","milestones_url":"https://api.github.com/repos/voxmedia/autotune/milestones{/number}","notifications_url":"https://api.github.com/repos/voxmedia/autotune/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voxmedia/autotune/labels{/name}","releases_url":"https://api.github.com/repos/voxmedia/autotune/releases{/id}","deployments_url":"https://api.github.com/repos/voxmedia/autotune/deployments","created_at":"2015-02-04T16:35:39Z","updated_at":"2016-04-21T08:32:12Z","pushed_at":"2016-04-21T17:40:21Z","git_url":"git://github.com/voxmedia/autotune.git","ssh_url":"git@github.com:voxmedia/autotune.git","clone_url":"https://github.com/voxmedia/autotune.git","svn_url":"https://github.com/voxmedia/autotune","homepage":"","size":92817,"stargazers_count":340,"watchers_count":340,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":48,"forks":27,"open_issues":48,"watchers":340,"default_branch":"master"}},"base":{"label":"voxmedia:master","ref":"master","sha":"b805e02884192612f97d25ba7dae092033f4d157","user":{"login":"voxmedia","id":316807,"avatar_url":"https://avatars.githubusercontent.com/u/316807?v=3","gravatar_id":"","url":"https://api.github.com/users/voxmedia","html_url":"https://github.com/voxmedia","followers_url":"https://api.github.com/users/voxmedia/followers","following_url":"https://api.github.com/users/voxmedia/following{/other_user}","gists_url":"https://api.github.com/users/voxmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/voxmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxmedia/subscriptions","organizations_url":"https://api.github.com/users/voxmedia/orgs","repos_url":"https://api.github.com/users/voxmedia/repos","events_url":"https://api.github.com/users/voxmedia/events{/privacy}","received_events_url":"https://api.github.com/users/voxmedia/received_events","type":"Organization","site_admin":false},"repo":{"id":30308932,"name":"autotune","full_name":"voxmedia/autotune","owner":{"login":"voxmedia","id":316807,"avatar_url":"https://avatars.githubusercontent.com/u/316807?v=3","gravatar_id":"","url":"https://api.github.com/users/voxmedia","html_url":"https://github.com/voxmedia","followers_url":"https://api.github.com/users/voxmedia/followers","following_url":"https://api.github.com/users/voxmedia/following{/other_user}","gists_url":"https://api.github.com/users/voxmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/voxmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxmedia/subscriptions","organizations_url":"https://api.github.com/users/voxmedia/orgs","repos_url":"https://api.github.com/users/voxmedia/repos","events_url":"https://api.github.com/users/voxmedia/events{/privacy}","received_events_url":"https://api.github.com/users/voxmedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/voxmedia/autotune","description":"Platform for reusable news tools","fork":false,"url":"https://api.github.com/repos/voxmedia/autotune","forks_url":"https://api.github.com/repos/voxmedia/autotune/forks","keys_url":"https://api.github.com/repos/voxmedia/autotune/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voxmedia/autotune/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voxmedia/autotune/teams","hooks_url":"https://api.github.com/repos/voxmedia/autotune/hooks","issue_events_url":"https://api.github.com/repos/voxmedia/autotune/issues/events{/number}","events_url":"https://api.github.com/repos/voxmedia/autotune/events","assignees_url":"https://api.github.com/repos/voxmedia/autotune/assignees{/user}","branches_url":"https://api.github.com/repos/voxmedia/autotune/branches{/branch}","tags_url":"https://api.github.com/repos/voxmedia/autotune/tags","blobs_url":"https://api.github.com/repos/voxmedia/autotune/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voxmedia/autotune/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voxmedia/autotune/git/refs{/sha}","trees_url":"https://api.github.com/repos/voxmedia/autotune/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voxmedia/autotune/statuses/{sha}","languages_url":"https://api.github.com/repos/voxmedia/autotune/languages","stargazers_url":"https://api.github.com/repos/voxmedia/autotune/stargazers","contributors_url":"https://api.github.com/repos/voxmedia/autotune/contributors","subscribers_url":"https://api.github.com/repos/voxmedia/autotune/subscribers","subscription_url":"https://api.github.com/repos/voxmedia/autotune/subscription","commits_url":"https://api.github.com/repos/voxmedia/autotune/commits{/sha}","git_commits_url":"https://api.github.com/repos/voxmedia/autotune/git/commits{/sha}","comments_url":"https://api.github.com/repos/voxmedia/autotune/comments{/number}","issue_comment_url":"https://api.github.com/repos/voxmedia/autotune/issues/comments{/number}","contents_url":"https://api.github.com/repos/voxmedia/autotune/contents/{+path}","compare_url":"https://api.github.com/repos/voxmedia/autotune/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voxmedia/autotune/merges","archive_url":"https://api.github.com/repos/voxmedia/autotune/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voxmedia/autotune/downloads","issues_url":"https://api.github.com/repos/voxmedia/autotune/issues{/number}","pulls_url":"https://api.github.com/repos/voxmedia/autotune/pulls{/number}","milestones_url":"https://api.github.com/repos/voxmedia/autotune/milestones{/number}","notifications_url":"https://api.github.com/repos/voxmedia/autotune/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voxmedia/autotune/labels{/name}","releases_url":"https://api.github.com/repos/voxmedia/autotune/releases{/id}","deployments_url":"https://api.github.com/repos/voxmedia/autotune/deployments","created_at":"2015-02-04T16:35:39Z","updated_at":"2016-04-21T08:32:12Z","pushed_at":"2016-04-21T17:40:21Z","git_url":"git://github.com/voxmedia/autotune.git","ssh_url":"git@github.com:voxmedia/autotune.git","clone_url":"https://github.com/voxmedia/autotune.git","svn_url":"https://github.com/voxmedia/autotune","homepage":"","size":92817,"stargazers_count":340,"watchers_count":340,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":48,"forks":27,"open_issues":48,"watchers":340,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/voxmedia/autotune/pulls/334"},"html":{"href":"https://github.com/voxmedia/autotune/pull/334"},"issue":{"href":"https://api.github.com/repos/voxmedia/autotune/issues/334"},"comments":{"href":"https://api.github.com/repos/voxmedia/autotune/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/voxmedia/autotune/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/voxmedia/autotune/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/voxmedia/autotune/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/voxmedia/autotune/statuses/9629b0c75feafb14daf042a2da7524e87490945c"}}}}