{"action":"created","comment":{"url":"https://api.github.com/repos/brave/ledger/pulls/comments/81401073","pull_request_review_id":2385632,"id":81401073,"diff_hunk":"@@ -0,0 +1,19 @@\n+# BITGO configuration","path":"setenv.sh","position":1,"original_position":1,"commit_id":"d4f88a9be2735ab96069838a836aaf3a00c53ae9","original_commit_id":"d4f88a9be2735ab96069838a836aaf3a00c53ae9","user":{"login":"mrose17","id":400552,"avatar_url":"https://avatars.githubusercontent.com/u/400552?v=3","gravatar_id":"","url":"https://api.github.com/users/mrose17","html_url":"https://github.com/mrose17","followers_url":"https://api.github.com/users/mrose17/followers","following_url":"https://api.github.com/users/mrose17/following{/other_user}","gists_url":"https://api.github.com/users/mrose17/gists{/gist_id}","starred_url":"https://api.github.com/users/mrose17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrose17/subscriptions","organizations_url":"https://api.github.com/users/mrose17/orgs","repos_url":"https://api.github.com/users/mrose17/repos","events_url":"https://api.github.com/users/mrose17/events{/privacy}","received_events_url":"https://api.github.com/users/mrose17/received_events","type":"User","site_admin":false},"body":"could this script read config/config.docker.js and set the variables from that? i'd like to keep configuration information in one place (`config/`) and in the same format (`.js`)","created_at":"2016-09-30T19:15:14Z","updated_at":"2016-09-30T19:15:14Z","html_url":"https://github.com/brave/ledger/pull/8#discussion_r81401073","pull_request_url":"https://api.github.com/repos/brave/ledger/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/brave/ledger/pulls/comments/81401073"},"html":{"href":"https://github.com/brave/ledger/pull/8#discussion_r81401073"},"pull_request":{"href":"https://api.github.com/repos/brave/ledger/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/brave/ledger/pulls/8","id":87417994,"html_url":"https://github.com/brave/ledger/pull/8","diff_url":"https://github.com/brave/ledger/pull/8.diff","patch_url":"https://github.com/brave/ledger/pull/8.patch","issue_url":"https://api.github.com/repos/brave/ledger/issues/8","number":8,"state":"open","locked":false,"title":"Dockerizing Ledger server (WIP)","user":{"login":"willy-b","id":6969859,"avatar_url":"https://avatars.githubusercontent.com/u/6969859?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-b","html_url":"https://github.com/willy-b","followers_url":"https://api.github.com/users/willy-b/followers","following_url":"https://api.github.com/users/willy-b/following{/other_user}","gists_url":"https://api.github.com/users/willy-b/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-b/subscriptions","organizations_url":"https://api.github.com/users/willy-b/orgs","repos_url":"https://api.github.com/users/willy-b/repos","events_url":"https://api.github.com/users/willy-b/events{/privacy}","received_events_url":"https://api.github.com/users/willy-b/received_events","type":"User","site_admin":false},"body":"Docker makes life easier, so let's use it.\r\n\r\nThis 1st pass Dockerization should let you set up a Ledger server on any machine running the Docker daemon without worrying about installing correct versions of NodeJS/mongo/redis/etc.\r\n\r\nSteps to run Ledger server:\r\n0. _One time:_ Edit `setenv.sh` to set your `BITGO_TOKEN` / `BITGO_ENTERPRISE_ID` (& optionally, `GITHUB_CLIENT_ID`/`GITHUB_CLIENT_SECRET` for authentication)\r\n1. Run `docker-compose build` (wait a bit; later we could pull this image from a docker-repo)\r\n2. Run `./run_docker.sh`\r\n\r\nThe Ledger server should be running on port 8080. (And the external port can be configured easily.)\r\n\r\nOnly dependencies should be `docker` and `docker-compose`.\r\nYou can get install info for those here:\r\n  Installing docker: https://docs.docker.com/engine/installation/\r\n  Installing docker-compose: https://docs.docker.com/compose/install/\r\n\r\nLots of caveats.\r\n- works for NODE_ENV=development as of this commit\r\n- data is NOT PERSISTENT by default, commit coming\r\n- only tested on Linux\r\n- need to setup HTTPS by default\r\n- ~~~GitHub authentication not yet setup through env variables~~~\r\n- changing external port requires editing `docker-compose.yml` (it shouldn't)","created_at":"2016-09-30T00:38:40Z","updated_at":"2016-09-30T19:18:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc92ebf8c39b86b56e0439ec44cbc1d25e202768","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/brave/ledger/pulls/8/commits","review_comments_url":"https://api.github.com/repos/brave/ledger/pulls/8/comments","review_comment_url":"https://api.github.com/repos/brave/ledger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brave/ledger/issues/8/comments","statuses_url":"https://api.github.com/repos/brave/ledger/statuses/d4f88a9be2735ab96069838a836aaf3a00c53ae9","head":{"label":"willy-b:dockerizing-rebase","ref":"dockerizing-rebase","sha":"d4f88a9be2735ab96069838a836aaf3a00c53ae9","user":{"login":"willy-b","id":6969859,"avatar_url":"https://avatars.githubusercontent.com/u/6969859?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-b","html_url":"https://github.com/willy-b","followers_url":"https://api.github.com/users/willy-b/followers","following_url":"https://api.github.com/users/willy-b/following{/other_user}","gists_url":"https://api.github.com/users/willy-b/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-b/subscriptions","organizations_url":"https://api.github.com/users/willy-b/orgs","repos_url":"https://api.github.com/users/willy-b/repos","events_url":"https://api.github.com/users/willy-b/events{/privacy}","received_events_url":"https://api.github.com/users/willy-b/received_events","type":"User","site_admin":false},"repo":{"id":69078399,"name":"ledger","full_name":"willy-b/ledger","owner":{"login":"willy-b","id":6969859,"avatar_url":"https://avatars.githubusercontent.com/u/6969859?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-b","html_url":"https://github.com/willy-b","followers_url":"https://api.github.com/users/willy-b/followers","following_url":"https://api.github.com/users/willy-b/following{/other_user}","gists_url":"https://api.github.com/users/willy-b/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-b/subscriptions","organizations_url":"https://api.github.com/users/willy-b/orgs","repos_url":"https://api.github.com/users/willy-b/repos","events_url":"https://api.github.com/users/willy-b/events{/privacy}","received_events_url":"https://api.github.com/users/willy-b/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willy-b/ledger","description":"An anonymous-but-accountable server for reconcilation.","fork":true,"url":"https://api.github.com/repos/willy-b/ledger","forks_url":"https://api.github.com/repos/willy-b/ledger/forks","keys_url":"https://api.github.com/repos/willy-b/ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willy-b/ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willy-b/ledger/teams","hooks_url":"https://api.github.com/repos/willy-b/ledger/hooks","issue_events_url":"https://api.github.com/repos/willy-b/ledger/issues/events{/number}","events_url":"https://api.github.com/repos/willy-b/ledger/events","assignees_url":"https://api.github.com/repos/willy-b/ledger/assignees{/user}","branches_url":"https://api.github.com/repos/willy-b/ledger/branches{/branch}","tags_url":"https://api.github.com/repos/willy-b/ledger/tags","blobs_url":"https://api.github.com/repos/willy-b/ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willy-b/ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willy-b/ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/willy-b/ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willy-b/ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/willy-b/ledger/languages","stargazers_url":"https://api.github.com/repos/willy-b/ledger/stargazers","contributors_url":"https://api.github.com/repos/willy-b/ledger/contributors","subscribers_url":"https://api.github.com/repos/willy-b/ledger/subscribers","subscription_url":"https://api.github.com/repos/willy-b/ledger/subscription","commits_url":"https://api.github.com/repos/willy-b/ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/willy-b/ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/willy-b/ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/willy-b/ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/willy-b/ledger/contents/{+path}","compare_url":"https://api.github.com/repos/willy-b/ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willy-b/ledger/merges","archive_url":"https://api.github.com/repos/willy-b/ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willy-b/ledger/downloads","issues_url":"https://api.github.com/repos/willy-b/ledger/issues{/number}","pulls_url":"https://api.github.com/repos/willy-b/ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/willy-b/ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/willy-b/ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willy-b/ledger/labels{/name}","releases_url":"https://api.github.com/repos/willy-b/ledger/releases{/id}","deployments_url":"https://api.github.com/repos/willy-b/ledger/deployments","created_at":"2016-09-24T03:55:51Z","updated_at":"2016-09-24T03:55:52Z","pushed_at":"2016-09-30T07:38:30Z","git_url":"git://github.com/willy-b/ledger.git","ssh_url":"git@github.com:willy-b/ledger.git","clone_url":"https://github.com/willy-b/ledger.git","svn_url":"https://github.com/willy-b/ledger","homepage":"https://brave.com","size":1605,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"brave:master","ref":"master","sha":"2361c126e85216ecea6e510c15c65f0990930380","user":{"login":"brave","id":12301619,"avatar_url":"https://avatars.githubusercontent.com/u/12301619?v=3","gravatar_id":"","url":"https://api.github.com/users/brave","html_url":"https://github.com/brave","followers_url":"https://api.github.com/users/brave/followers","following_url":"https://api.github.com/users/brave/following{/other_user}","gists_url":"https://api.github.com/users/brave/gists{/gist_id}","starred_url":"https://api.github.com/users/brave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave/subscriptions","organizations_url":"https://api.github.com/users/brave/orgs","repos_url":"https://api.github.com/users/brave/repos","events_url":"https://api.github.com/users/brave/events{/privacy}","received_events_url":"https://api.github.com/users/brave/received_events","type":"Organization","site_admin":false},"repo":{"id":55085452,"name":"ledger","full_name":"brave/ledger","owner":{"login":"brave","id":12301619,"avatar_url":"https://avatars.githubusercontent.com/u/12301619?v=3","gravatar_id":"","url":"https://api.github.com/users/brave","html_url":"https://github.com/brave","followers_url":"https://api.github.com/users/brave/followers","following_url":"https://api.github.com/users/brave/following{/other_user}","gists_url":"https://api.github.com/users/brave/gists{/gist_id}","starred_url":"https://api.github.com/users/brave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave/subscriptions","organizations_url":"https://api.github.com/users/brave/orgs","repos_url":"https://api.github.com/users/brave/repos","events_url":"https://api.github.com/users/brave/events{/privacy}","received_events_url":"https://api.github.com/users/brave/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brave/ledger","description":"An anonymous-but-accountable server for reconcilation.","fork":false,"url":"https://api.github.com/repos/brave/ledger","forks_url":"https://api.github.com/repos/brave/ledger/forks","keys_url":"https://api.github.com/repos/brave/ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brave/ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brave/ledger/teams","hooks_url":"https://api.github.com/repos/brave/ledger/hooks","issue_events_url":"https://api.github.com/repos/brave/ledger/issues/events{/number}","events_url":"https://api.github.com/repos/brave/ledger/events","assignees_url":"https://api.github.com/repos/brave/ledger/assignees{/user}","branches_url":"https://api.github.com/repos/brave/ledger/branches{/branch}","tags_url":"https://api.github.com/repos/brave/ledger/tags","blobs_url":"https://api.github.com/repos/brave/ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brave/ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brave/ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/brave/ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brave/ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/brave/ledger/languages","stargazers_url":"https://api.github.com/repos/brave/ledger/stargazers","contributors_url":"https://api.github.com/repos/brave/ledger/contributors","subscribers_url":"https://api.github.com/repos/brave/ledger/subscribers","subscription_url":"https://api.github.com/repos/brave/ledger/subscription","commits_url":"https://api.github.com/repos/brave/ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/brave/ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/brave/ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/brave/ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/brave/ledger/contents/{+path}","compare_url":"https://api.github.com/repos/brave/ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brave/ledger/merges","archive_url":"https://api.github.com/repos/brave/ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brave/ledger/downloads","issues_url":"https://api.github.com/repos/brave/ledger/issues{/number}","pulls_url":"https://api.github.com/repos/brave/ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/brave/ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/brave/ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brave/ledger/labels{/name}","releases_url":"https://api.github.com/repos/brave/ledger/releases{/id}","deployments_url":"https://api.github.com/repos/brave/ledger/deployments","created_at":"2016-03-30T18:03:45Z","updated_at":"2016-09-21T03:39:28Z","pushed_at":"2016-09-30T07:38:31Z","git_url":"git://github.com/brave/ledger.git","ssh_url":"git@github.com:brave/ledger.git","clone_url":"https://github.com/brave/ledger.git","svn_url":"https://github.com/brave/ledger","homepage":"https://brave.com","size":1601,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brave/ledger/pulls/8"},"html":{"href":"https://github.com/brave/ledger/pull/8"},"issue":{"href":"https://api.github.com/repos/brave/ledger/issues/8"},"comments":{"href":"https://api.github.com/repos/brave/ledger/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/brave/ledger/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/brave/ledger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brave/ledger/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/brave/ledger/statuses/d4f88a9be2735ab96069838a836aaf3a00c53ae9"}}}}
{"actor":{"display_login":"mrose17"}}