{"action":"opened","number":113,"pull_request":{"url":"https://api.github.com/repos/J3RN/time-tracker/pulls/113","id":98709174,"html_url":"https://github.com/J3RN/time-tracker/pull/113","diff_url":"https://github.com/J3RN/time-tracker/pull/113.diff","patch_url":"https://github.com/J3RN/time-tracker/pull/113.patch","issue_url":"https://api.github.com/repos/J3RN/time-tracker/issues/113","number":113,"state":"open","locked":false,"title":"'Ability to run locally with docker'","user":{"login":"smacz42","id":10110994,"avatar_url":"https://avatars.githubusercontent.com/u/10110994?v=3","gravatar_id":"","url":"https://api.github.com/users/smacz42","html_url":"https://github.com/smacz42","followers_url":"https://api.github.com/users/smacz42/followers","following_url":"https://api.github.com/users/smacz42/following{/other_user}","gists_url":"https://api.github.com/users/smacz42/gists{/gist_id}","starred_url":"https://api.github.com/users/smacz42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacz42/subscriptions","organizations_url":"https://api.github.com/users/smacz42/orgs","repos_url":"https://api.github.com/users/smacz42/repos","events_url":"https://api.github.com/users/smacz42/events{/privacy}","received_events_url":"https://api.github.com/users/smacz42/received_events","type":"User","site_admin":false},"body":"This setup has two docker containers to maximize scalability. This is because one of the images is the web frontend and the other is the database (postgresql) backend. This would be the logical architecture if one were to deploy this over many datacenters, etc. This setup requires ... setup though. \r\n\r\n```\r\ngit clone *repo* && cd *repo*\r\ndocker-compose build\r\ndocker-compose run web rake db:setup\r\ndocker-compose up\r\n```\r\n\r\nAfter the last step, the output from the containers are piped to stdout, and killing the output kills the process. This setup is more geared towards the developer and QA, etc. Also, be careful as this does drop a log file and a tmp directory from passenger into the $PWD - that behavior can be changed if necessary.\r\n\r\nThere is also another approach to dockerize the image, where it is one image. This is considerably easier on the end users to setup and run, and does not require any setup. However, it is completely transparent when it comes to the nuts and bolts, with the most being able to be specified would be the port that it was bound to on localhost. In essence it would just run. That type of image would also be more appropriate to showcase on a \"downloads\" page for this app.\r\n\r\nLet me know if you want one or the other or both. I'll probably have a second branch for the single version later. I wonder what they use at CMM...","created_at":"2016-12-20T09:00:36Z","updated_at":"2016-12-20T09:00:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/J3RN/time-tracker/pulls/113/commits","review_comments_url":"https://api.github.com/repos/J3RN/time-tracker/pulls/113/comments","review_comment_url":"https://api.github.com/repos/J3RN/time-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/J3RN/time-tracker/issues/113/comments","statuses_url":"https://api.github.com/repos/J3RN/time-tracker/statuses/45651347ff2b4c6bdb5a0e81bdf843206953afef","head":{"label":"smacz42:dockerize","ref":"dockerize","sha":"45651347ff2b4c6bdb5a0e81bdf843206953afef","user":{"login":"smacz42","id":10110994,"avatar_url":"https://avatars.githubusercontent.com/u/10110994?v=3","gravatar_id":"","url":"https://api.github.com/users/smacz42","html_url":"https://github.com/smacz42","followers_url":"https://api.github.com/users/smacz42/followers","following_url":"https://api.github.com/users/smacz42/following{/other_user}","gists_url":"https://api.github.com/users/smacz42/gists{/gist_id}","starred_url":"https://api.github.com/users/smacz42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacz42/subscriptions","organizations_url":"https://api.github.com/users/smacz42/orgs","repos_url":"https://api.github.com/users/smacz42/repos","events_url":"https://api.github.com/users/smacz42/events{/privacy}","received_events_url":"https://api.github.com/users/smacz42/received_events","type":"User","site_admin":false},"repo":{"id":76937228,"name":"time-tracker","full_name":"smacz42/time-tracker","owner":{"login":"smacz42","id":10110994,"avatar_url":"https://avatars.githubusercontent.com/u/10110994?v=3","gravatar_id":"","url":"https://api.github.com/users/smacz42","html_url":"https://github.com/smacz42","followers_url":"https://api.github.com/users/smacz42/followers","following_url":"https://api.github.com/users/smacz42/following{/other_user}","gists_url":"https://api.github.com/users/smacz42/gists{/gist_id}","starred_url":"https://api.github.com/users/smacz42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacz42/subscriptions","organizations_url":"https://api.github.com/users/smacz42/orgs","repos_url":"https://api.github.com/users/smacz42/repos","events_url":"https://api.github.com/users/smacz42/events{/privacy}","received_events_url":"https://api.github.com/users/smacz42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smacz42/time-tracker","description":"A  time tracking application","fork":true,"url":"https://api.github.com/repos/smacz42/time-tracker","forks_url":"https://api.github.com/repos/smacz42/time-tracker/forks","keys_url":"https://api.github.com/repos/smacz42/time-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smacz42/time-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smacz42/time-tracker/teams","hooks_url":"https://api.github.com/repos/smacz42/time-tracker/hooks","issue_events_url":"https://api.github.com/repos/smacz42/time-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/smacz42/time-tracker/events","assignees_url":"https://api.github.com/repos/smacz42/time-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/smacz42/time-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/smacz42/time-tracker/tags","blobs_url":"https://api.github.com/repos/smacz42/time-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smacz42/time-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smacz42/time-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/smacz42/time-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smacz42/time-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/smacz42/time-tracker/languages","stargazers_url":"https://api.github.com/repos/smacz42/time-tracker/stargazers","contributors_url":"https://api.github.com/repos/smacz42/time-tracker/contributors","subscribers_url":"https://api.github.com/repos/smacz42/time-tracker/subscribers","subscription_url":"https://api.github.com/repos/smacz42/time-tracker/subscription","commits_url":"https://api.github.com/repos/smacz42/time-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/smacz42/time-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/smacz42/time-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/smacz42/time-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/smacz42/time-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/smacz42/time-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smacz42/time-tracker/merges","archive_url":"https://api.github.com/repos/smacz42/time-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smacz42/time-tracker/downloads","issues_url":"https://api.github.com/repos/smacz42/time-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/smacz42/time-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/smacz42/time-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/smacz42/time-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smacz42/time-tracker/labels{/name}","releases_url":"https://api.github.com/repos/smacz42/time-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/smacz42/time-tracker/deployments","created_at":"2016-12-20T08:15:56Z","updated_at":"2016-12-20T08:15:59Z","pushed_at":"2016-12-20T08:24:13Z","git_url":"git://github.com/smacz42/time-tracker.git","ssh_url":"git@github.com:smacz42/time-tracker.git","clone_url":"https://github.com/smacz42/time-tracker.git","svn_url":"https://github.com/smacz42/time-tracker","homepage":"http://timesheet.j3rn.com","size":360,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"J3RN:master","ref":"master","sha":"78f650101b926728fe0e6a598e6bfbf1444aa117","user":{"login":"J3RN","id":2058614,"avatar_url":"https://avatars.githubusercontent.com/u/2058614?v=3","gravatar_id":"","url":"https://api.github.com/users/J3RN","html_url":"https://github.com/J3RN","followers_url":"https://api.github.com/users/J3RN/followers","following_url":"https://api.github.com/users/J3RN/following{/other_user}","gists_url":"https://api.github.com/users/J3RN/gists{/gist_id}","starred_url":"https://api.github.com/users/J3RN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J3RN/subscriptions","organizations_url":"https://api.github.com/users/J3RN/orgs","repos_url":"https://api.github.com/users/J3RN/repos","events_url":"https://api.github.com/users/J3RN/events{/privacy}","received_events_url":"https://api.github.com/users/J3RN/received_events","type":"User","site_admin":false},"repo":{"id":28968504,"name":"time-tracker","full_name":"J3RN/time-tracker","owner":{"login":"J3RN","id":2058614,"avatar_url":"https://avatars.githubusercontent.com/u/2058614?v=3","gravatar_id":"","url":"https://api.github.com/users/J3RN","html_url":"https://github.com/J3RN","followers_url":"https://api.github.com/users/J3RN/followers","following_url":"https://api.github.com/users/J3RN/following{/other_user}","gists_url":"https://api.github.com/users/J3RN/gists{/gist_id}","starred_url":"https://api.github.com/users/J3RN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J3RN/subscriptions","organizations_url":"https://api.github.com/users/J3RN/orgs","repos_url":"https://api.github.com/users/J3RN/repos","events_url":"https://api.github.com/users/J3RN/events{/privacy}","received_events_url":"https://api.github.com/users/J3RN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/J3RN/time-tracker","description":"A  time tracking application","fork":false,"url":"https://api.github.com/repos/J3RN/time-tracker","forks_url":"https://api.github.com/repos/J3RN/time-tracker/forks","keys_url":"https://api.github.com/repos/J3RN/time-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/J3RN/time-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/J3RN/time-tracker/teams","hooks_url":"https://api.github.com/repos/J3RN/time-tracker/hooks","issue_events_url":"https://api.github.com/repos/J3RN/time-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/J3RN/time-tracker/events","assignees_url":"https://api.github.com/repos/J3RN/time-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/J3RN/time-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/J3RN/time-tracker/tags","blobs_url":"https://api.github.com/repos/J3RN/time-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/J3RN/time-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/J3RN/time-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/J3RN/time-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/J3RN/time-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/J3RN/time-tracker/languages","stargazers_url":"https://api.github.com/repos/J3RN/time-tracker/stargazers","contributors_url":"https://api.github.com/repos/J3RN/time-tracker/contributors","subscribers_url":"https://api.github.com/repos/J3RN/time-tracker/subscribers","subscription_url":"https://api.github.com/repos/J3RN/time-tracker/subscription","commits_url":"https://api.github.com/repos/J3RN/time-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/J3RN/time-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/J3RN/time-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/J3RN/time-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/J3RN/time-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/J3RN/time-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/J3RN/time-tracker/merges","archive_url":"https://api.github.com/repos/J3RN/time-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/J3RN/time-tracker/downloads","issues_url":"https://api.github.com/repos/J3RN/time-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/J3RN/time-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/J3RN/time-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/J3RN/time-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/J3RN/time-tracker/labels{/name}","releases_url":"https://api.github.com/repos/J3RN/time-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/J3RN/time-tracker/deployments","created_at":"2015-01-08T14:04:15Z","updated_at":"2016-11-01T21:17:40Z","pushed_at":"2016-12-07T14:43:45Z","git_url":"git://github.com/J3RN/time-tracker.git","ssh_url":"git@github.com:J3RN/time-tracker.git","clone_url":"https://github.com/J3RN/time-tracker.git","svn_url":"https://github.com/J3RN/time-tracker","homepage":"http://timesheet.j3rn.com","size":360,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":26,"forks":15,"open_issues":26,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/J3RN/time-tracker/pulls/113"},"html":{"href":"https://github.com/J3RN/time-tracker/pull/113"},"issue":{"href":"https://api.github.com/repos/J3RN/time-tracker/issues/113"},"comments":{"href":"https://api.github.com/repos/J3RN/time-tracker/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/J3RN/time-tracker/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/J3RN/time-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/J3RN/time-tracker/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/J3RN/time-tracker/statuses/45651347ff2b4c6bdb5a0e81bdf843206953afef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":42,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"smacz42"}}