{"action":"opened","number":497,"pull_request":{"url":"https://api.github.com/repos/begriffs/postgrest/pulls/497","id":59690354,"html_url":"https://github.com/begriffs/postgrest/pull/497","diff_url":"https://github.com/begriffs/postgrest/pull/497.diff","patch_url":"https://github.com/begriffs/postgrest/pull/497.patch","issue_url":"https://api.github.com/repos/begriffs/postgrest/issues/497","number":497,"state":"open","locked":false,"title":"PostgRest Dockerfile","user":{"login":"bobcolner","id":959946,"avatar_url":"https://avatars.githubusercontent.com/u/959946?v=3","gravatar_id":"","url":"https://api.github.com/users/bobcolner","html_url":"https://github.com/bobcolner","followers_url":"https://api.github.com/users/bobcolner/followers","following_url":"https://api.github.com/users/bobcolner/following{/other_user}","gists_url":"https://api.github.com/users/bobcolner/gists{/gist_id}","starred_url":"https://api.github.com/users/bobcolner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobcolner/subscriptions","organizations_url":"https://api.github.com/users/bobcolner/orgs","repos_url":"https://api.github.com/users/bobcolner/repos","events_url":"https://api.github.com/users/bobcolner/events{/privacy}","received_events_url":"https://api.github.com/users/bobcolner/received_events","type":"User","site_admin":false},"body":"PostgRest Dockerfile with ENV parameter passthrough. This dockerfile builds an image that can be linked to the offical postgresql image and uses ENV vars for postgrest parameter passthrough.\r\n\r\n# build postgrest docker image\r\ndocker build -t pgrest .\r\n# start postgresql container\r\ndocker run --name pg -d -p 5432:5432 -e POSTGRES_PASSWORD=sillypass postgres:9.5\r\n# start postgREST API server linked to the db\r\ndocker run --name pgrest --link pg:pg -p 3000:3000 -e POSTGREST_ANONYMOUS=postgres -e POSTGREST_SCHEMA=public -d pgrest","created_at":"2016-02-17T18:51:36Z","updated_at":"2016-02-17T18:51:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/begriffs/postgrest/pulls/497/commits","review_comments_url":"https://api.github.com/repos/begriffs/postgrest/pulls/497/comments","review_comment_url":"https://api.github.com/repos/begriffs/postgrest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/begriffs/postgrest/issues/497/comments","statuses_url":"https://api.github.com/repos/begriffs/postgrest/statuses/ef3e2511feccfaecaed007a8766bceafe5872b32","head":{"label":"bobcolner:bobcolner-dockerfile","ref":"bobcolner-dockerfile","sha":"ef3e2511feccfaecaed007a8766bceafe5872b32","user":{"login":"bobcolner","id":959946,"avatar_url":"https://avatars.githubusercontent.com/u/959946?v=3","gravatar_id":"","url":"https://api.github.com/users/bobcolner","html_url":"https://github.com/bobcolner","followers_url":"https://api.github.com/users/bobcolner/followers","following_url":"https://api.github.com/users/bobcolner/following{/other_user}","gists_url":"https://api.github.com/users/bobcolner/gists{/gist_id}","starred_url":"https://api.github.com/users/bobcolner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobcolner/subscriptions","organizations_url":"https://api.github.com/users/bobcolner/orgs","repos_url":"https://api.github.com/users/bobcolner/repos","events_url":"https://api.github.com/users/bobcolner/events{/privacy}","received_events_url":"https://api.github.com/users/bobcolner/received_events","type":"User","site_admin":false},"repo":{"id":51945931,"name":"postgrest","full_name":"bobcolner/postgrest","owner":{"login":"bobcolner","id":959946,"avatar_url":"https://avatars.githubusercontent.com/u/959946?v=3","gravatar_id":"","url":"https://api.github.com/users/bobcolner","html_url":"https://github.com/bobcolner","followers_url":"https://api.github.com/users/bobcolner/followers","following_url":"https://api.github.com/users/bobcolner/following{/other_user}","gists_url":"https://api.github.com/users/bobcolner/gists{/gist_id}","starred_url":"https://api.github.com/users/bobcolner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobcolner/subscriptions","organizations_url":"https://api.github.com/users/bobcolner/orgs","repos_url":"https://api.github.com/users/bobcolner/repos","events_url":"https://api.github.com/users/bobcolner/events{/privacy}","received_events_url":"https://api.github.com/users/bobcolner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bobcolner/postgrest","description":"REST API for any Postgres database","fork":true,"url":"https://api.github.com/repos/bobcolner/postgrest","forks_url":"https://api.github.com/repos/bobcolner/postgrest/forks","keys_url":"https://api.github.com/repos/bobcolner/postgrest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobcolner/postgrest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobcolner/postgrest/teams","hooks_url":"https://api.github.com/repos/bobcolner/postgrest/hooks","issue_events_url":"https://api.github.com/repos/bobcolner/postgrest/issues/events{/number}","events_url":"https://api.github.com/repos/bobcolner/postgrest/events","assignees_url":"https://api.github.com/repos/bobcolner/postgrest/assignees{/user}","branches_url":"https://api.github.com/repos/bobcolner/postgrest/branches{/branch}","tags_url":"https://api.github.com/repos/bobcolner/postgrest/tags","blobs_url":"https://api.github.com/repos/bobcolner/postgrest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobcolner/postgrest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobcolner/postgrest/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobcolner/postgrest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobcolner/postgrest/statuses/{sha}","languages_url":"https://api.github.com/repos/bobcolner/postgrest/languages","stargazers_url":"https://api.github.com/repos/bobcolner/postgrest/stargazers","contributors_url":"https://api.github.com/repos/bobcolner/postgrest/contributors","subscribers_url":"https://api.github.com/repos/bobcolner/postgrest/subscribers","subscription_url":"https://api.github.com/repos/bobcolner/postgrest/subscription","commits_url":"https://api.github.com/repos/bobcolner/postgrest/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobcolner/postgrest/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobcolner/postgrest/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobcolner/postgrest/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobcolner/postgrest/contents/{+path}","compare_url":"https://api.github.com/repos/bobcolner/postgrest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobcolner/postgrest/merges","archive_url":"https://api.github.com/repos/bobcolner/postgrest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobcolner/postgrest/downloads","issues_url":"https://api.github.com/repos/bobcolner/postgrest/issues{/number}","pulls_url":"https://api.github.com/repos/bobcolner/postgrest/pulls{/number}","milestones_url":"https://api.github.com/repos/bobcolner/postgrest/milestones{/number}","notifications_url":"https://api.github.com/repos/bobcolner/postgrest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobcolner/postgrest/labels{/name}","releases_url":"https://api.github.com/repos/bobcolner/postgrest/releases{/id}","deployments_url":"https://api.github.com/repos/bobcolner/postgrest/deployments","created_at":"2016-02-17T18:39:25Z","updated_at":"2016-02-17T18:39:26Z","pushed_at":"2016-02-17T18:41:51Z","git_url":"git://github.com/bobcolner/postgrest.git","ssh_url":"git@github.com:bobcolner/postgrest.git","clone_url":"https://github.com/bobcolner/postgrest.git","svn_url":"https://github.com/bobcolner/postgrest","homepage":"http://postgrest.com","size":2872,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"begriffs:master","ref":"master","sha":"6b4b763bc406a238a8cfa2ce50387f3c40b7333d","user":{"login":"begriffs","id":911911,"avatar_url":"https://avatars.githubusercontent.com/u/911911?v=3","gravatar_id":"","url":"https://api.github.com/users/begriffs","html_url":"https://github.com/begriffs","followers_url":"https://api.github.com/users/begriffs/followers","following_url":"https://api.github.com/users/begriffs/following{/other_user}","gists_url":"https://api.github.com/users/begriffs/gists{/gist_id}","starred_url":"https://api.github.com/users/begriffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begriffs/subscriptions","organizations_url":"https://api.github.com/users/begriffs/orgs","repos_url":"https://api.github.com/users/begriffs/repos","events_url":"https://api.github.com/users/begriffs/events{/privacy}","received_events_url":"https://api.github.com/users/begriffs/received_events","type":"User","site_admin":false},"repo":{"id":20787122,"name":"postgrest","full_name":"begriffs/postgrest","owner":{"login":"begriffs","id":911911,"avatar_url":"https://avatars.githubusercontent.com/u/911911?v=3","gravatar_id":"","url":"https://api.github.com/users/begriffs","html_url":"https://github.com/begriffs","followers_url":"https://api.github.com/users/begriffs/followers","following_url":"https://api.github.com/users/begriffs/following{/other_user}","gists_url":"https://api.github.com/users/begriffs/gists{/gist_id}","starred_url":"https://api.github.com/users/begriffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begriffs/subscriptions","organizations_url":"https://api.github.com/users/begriffs/orgs","repos_url":"https://api.github.com/users/begriffs/repos","events_url":"https://api.github.com/users/begriffs/events{/privacy}","received_events_url":"https://api.github.com/users/begriffs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/begriffs/postgrest","description":"REST API for any Postgres database","fork":false,"url":"https://api.github.com/repos/begriffs/postgrest","forks_url":"https://api.github.com/repos/begriffs/postgrest/forks","keys_url":"https://api.github.com/repos/begriffs/postgrest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/begriffs/postgrest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/begriffs/postgrest/teams","hooks_url":"https://api.github.com/repos/begriffs/postgrest/hooks","issue_events_url":"https://api.github.com/repos/begriffs/postgrest/issues/events{/number}","events_url":"https://api.github.com/repos/begriffs/postgrest/events","assignees_url":"https://api.github.com/repos/begriffs/postgrest/assignees{/user}","branches_url":"https://api.github.com/repos/begriffs/postgrest/branches{/branch}","tags_url":"https://api.github.com/repos/begriffs/postgrest/tags","blobs_url":"https://api.github.com/repos/begriffs/postgrest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/begriffs/postgrest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/begriffs/postgrest/git/refs{/sha}","trees_url":"https://api.github.com/repos/begriffs/postgrest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/begriffs/postgrest/statuses/{sha}","languages_url":"https://api.github.com/repos/begriffs/postgrest/languages","stargazers_url":"https://api.github.com/repos/begriffs/postgrest/stargazers","contributors_url":"https://api.github.com/repos/begriffs/postgrest/contributors","subscribers_url":"https://api.github.com/repos/begriffs/postgrest/subscribers","subscription_url":"https://api.github.com/repos/begriffs/postgrest/subscription","commits_url":"https://api.github.com/repos/begriffs/postgrest/commits{/sha}","git_commits_url":"https://api.github.com/repos/begriffs/postgrest/git/commits{/sha}","comments_url":"https://api.github.com/repos/begriffs/postgrest/comments{/number}","issue_comment_url":"https://api.github.com/repos/begriffs/postgrest/issues/comments{/number}","contents_url":"https://api.github.com/repos/begriffs/postgrest/contents/{+path}","compare_url":"https://api.github.com/repos/begriffs/postgrest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/begriffs/postgrest/merges","archive_url":"https://api.github.com/repos/begriffs/postgrest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/begriffs/postgrest/downloads","issues_url":"https://api.github.com/repos/begriffs/postgrest/issues{/number}","pulls_url":"https://api.github.com/repos/begriffs/postgrest/pulls{/number}","milestones_url":"https://api.github.com/repos/begriffs/postgrest/milestones{/number}","notifications_url":"https://api.github.com/repos/begriffs/postgrest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/begriffs/postgrest/labels{/name}","releases_url":"https://api.github.com/repos/begriffs/postgrest/releases{/id}","deployments_url":"https://api.github.com/repos/begriffs/postgrest/deployments","created_at":"2014-06-13T00:23:00Z","updated_at":"2016-02-17T18:47:22Z","pushed_at":"2016-02-17T15:30:23Z","git_url":"git://github.com/begriffs/postgrest.git","ssh_url":"git@github.com:begriffs/postgrest.git","clone_url":"https://github.com/begriffs/postgrest.git","svn_url":"https://github.com/begriffs/postgrest","homepage":"http://postgrest.com","size":2998,"stargazers_count":6329,"watchers_count":6329,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":217,"mirror_url":null,"open_issues_count":71,"forks":217,"open_issues":71,"watchers":6329,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/begriffs/postgrest/pulls/497"},"html":{"href":"https://github.com/begriffs/postgrest/pull/497"},"issue":{"href":"https://api.github.com/repos/begriffs/postgrest/issues/497"},"comments":{"href":"https://api.github.com/repos/begriffs/postgrest/issues/497/comments"},"review_comments":{"href":"https://api.github.com/repos/begriffs/postgrest/pulls/497/comments"},"review_comment":{"href":"https://api.github.com/repos/begriffs/postgrest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/begriffs/postgrest/pulls/497/commits"},"statuses":{"href":"https://api.github.com/repos/begriffs/postgrest/statuses/ef3e2511feccfaecaed007a8766bceafe5872b32"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":27,"deletions":0,"changed_files":1}}