{"action":"created","issue":{"url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/issues/335","labels_url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/issues/335/comments","events_url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/issues/335/events","html_url":"https://github.com/codeforamerica/somerville-teacher-tool/pull/335","id":115678616,"number":335,"title":"Dockerize Rails and Postgres for local development","user":{"login":"kevinrobinson","id":1056957,"avatar_url":"https://avatars.githubusercontent.com/u/1056957?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinrobinson","html_url":"https://github.com/kevinrobinson","followers_url":"https://api.github.com/users/kevinrobinson/followers","following_url":"https://api.github.com/users/kevinrobinson/following{/other_user}","gists_url":"https://api.github.com/users/kevinrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinrobinson/subscriptions","organizations_url":"https://api.github.com/users/kevinrobinson/orgs","repos_url":"https://api.github.com/users/kevinrobinson/repos","events_url":"https://api.github.com/users/kevinrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/kevinrobinson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-07T17:20:00Z","updated_at":"2015-11-11T23:06:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/pulls/335","html_url":"https://github.com/codeforamerica/somerville-teacher-tool/pull/335","diff_url":"https://github.com/codeforamerica/somerville-teacher-tool/pull/335.diff","patch_url":"https://github.com/codeforamerica/somerville-teacher-tool/pull/335.patch"},"body":"@alexsoble I started hacking on this a bit and setting up my development environment.  I worked on two infrastructure-y pieces that I think might be helpful, which I'll submit as separate PRs.  Let me know what you think! :)\r\n\r\nInstead of installing Postgres, etc. on my local laptop, I worked to add support for running the project in Docker containers for local development.  The only change to the existing setup is upping the Ruby version to 2.2.3, only because there isn't a supported Ruby container for 2.1.6.\r\n\r\nThis adds a `Dockerfile` that can run the Rails app in a container, and also adds a `docker-compose.yml` file that pulls in the standard Postgres container and connects the two together.  So for workflow, running `docker-compose up` starts ephemeral Rails and Postgres containers that are linked together, and hitting `http://docker:3000` works just like it does when running everything locally.  Possibly be useful for production deployments at some point."},"comment":{"url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/issues/comments/155937876","html_url":"https://github.com/codeforamerica/somerville-teacher-tool/pull/335#issuecomment-155937876","issue_url":"https://api.github.com/repos/codeforamerica/somerville-teacher-tool/issues/335","id":155937876,"user":{"login":"alexsoble","id":3209501,"avatar_url":"https://avatars.githubusercontent.com/u/3209501?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsoble","html_url":"https://github.com/alexsoble","followers_url":"https://api.github.com/users/alexsoble/followers","following_url":"https://api.github.com/users/alexsoble/following{/other_user}","gists_url":"https://api.github.com/users/alexsoble/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsoble/subscriptions","organizations_url":"https://api.github.com/users/alexsoble/orgs","repos_url":"https://api.github.com/users/alexsoble/repos","events_url":"https://api.github.com/users/alexsoble/events{/privacy}","received_events_url":"https://api.github.com/users/alexsoble/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T23:06:30Z","updated_at":"2015-11-11T23:06:30Z","body":"@kevinrobinson Sounds good!"}}