{"action":"created","comment":{"url":"https://api.github.com/repos/deis/postgres/pulls/comments/56412946","id":56412946,"diff_hunk":"@@ -49,6 +54,9 @@ MINIO_JOB=$(docker run -dv $CURRENT_DIR/tmp/aws-admin:/var/run/secrets/deis/mini\n # boot postgres, linking the minio container and setting DEIS_MINIO_SERVICE_HOST and DEIS_MINIO_SERVICE_PORT\n PG_JOB=$(docker run -d --link $MINIO_JOB:minio -e BACKUP_FREQUENCY=1s -e DEIS_MINIO_SERVICE_HOST=minio -e DEIS_MINIO_SERVICE_PORT=9000 -v $CURRENT_DIR/tmp/creds:/var/run/secrets/deis/database/creds -v $CURRENT_DIR/tmp/aws-user:/etc/wal-e.d/env $1)\n \n+# kill containers when this script exits or errors out","path":"contrib/ci/test.sh","position":16,"original_position":16,"commit_id":"57a0cb53fad6972303229eed29462bf212bde663","original_commit_id":"9d2867268d5bd55deeb1e9daacfde9f581b8c9e4","user":{"login":"carmstrong","id":536009,"avatar_url":"https://avatars.githubusercontent.com/u/536009?v=3","gravatar_id":"","url":"https://api.github.com/users/carmstrong","html_url":"https://github.com/carmstrong","followers_url":"https://api.github.com/users/carmstrong/followers","following_url":"https://api.github.com/users/carmstrong/following{/other_user}","gists_url":"https://api.github.com/users/carmstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/carmstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmstrong/subscriptions","organizations_url":"https://api.github.com/users/carmstrong/orgs","repos_url":"https://api.github.com/users/carmstrong/repos","events_url":"https://api.github.com/users/carmstrong/events{/privacy}","received_events_url":"https://api.github.com/users/carmstrong/received_events","type":"User","site_admin":false},"body":"This is what we did in v1: https://github.com/deis/deis/blob/master/database/bin/boot#L110-L116","created_at":"2016-03-16T20:54:06Z","updated_at":"2016-03-16T20:54:06Z","html_url":"https://github.com/deis/postgres/pull/70#discussion_r56412946","pull_request_url":"https://api.github.com/repos/deis/postgres/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/deis/postgres/pulls/comments/56412946"},"html":{"href":"https://github.com/deis/postgres/pull/70#discussion_r56412946"},"pull_request":{"href":"https://api.github.com/repos/deis/postgres/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/deis/postgres/pulls/70","id":63098542,"html_url":"https://github.com/deis/postgres/pull/70","diff_url":"https://github.com/deis/postgres/pull/70.diff","patch_url":"https://github.com/deis/postgres/pull/70.patch","issue_url":"https://api.github.com/repos/deis/postgres/issues/70","number":70,"state":"open","locked":false,"title":"feat(contrib): kill containers on success or failure","user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-16T16:53:49Z","updated_at":"2016-03-16T20:54:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75a6295f7b85e47bf38d820f571eabfe9aadc180","assignee":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/deis/postgres/milestones/3","html_url":"https://github.com/deis/postgres/milestones/v2.0-rc1","labels_url":"https://api.github.com/repos/deis/postgres/milestones/3/labels","id":1639704,"number":3,"title":"v2.0-rc1","description":"","creator":{"login":"mboersma","id":73019,"avatar_url":"https://avatars.githubusercontent.com/u/73019?v=3","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-03-11T20:35:09Z","updated_at":"2016-03-16T16:53:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/deis/postgres/pulls/70/commits","review_comments_url":"https://api.github.com/repos/deis/postgres/pulls/70/comments","review_comment_url":"https://api.github.com/repos/deis/postgres/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deis/postgres/issues/70/comments","statuses_url":"https://api.github.com/repos/deis/postgres/statuses/57a0cb53fad6972303229eed29462bf212bde663","head":{"label":"bacongobbler:trap-kill-containers","ref":"trap-kill-containers","sha":"57a0cb53fad6972303229eed29462bf212bde663","user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"repo":{"id":47293157,"name":"postgres","full_name":"bacongobbler/postgres","owner":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bacongobbler/postgres","description":"A PostgreSQL database for use in the Deis open source PaaS.","fork":true,"url":"https://api.github.com/repos/bacongobbler/postgres","forks_url":"https://api.github.com/repos/bacongobbler/postgres/forks","keys_url":"https://api.github.com/repos/bacongobbler/postgres/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bacongobbler/postgres/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bacongobbler/postgres/teams","hooks_url":"https://api.github.com/repos/bacongobbler/postgres/hooks","issue_events_url":"https://api.github.com/repos/bacongobbler/postgres/issues/events{/number}","events_url":"https://api.github.com/repos/bacongobbler/postgres/events","assignees_url":"https://api.github.com/repos/bacongobbler/postgres/assignees{/user}","branches_url":"https://api.github.com/repos/bacongobbler/postgres/branches{/branch}","tags_url":"https://api.github.com/repos/bacongobbler/postgres/tags","blobs_url":"https://api.github.com/repos/bacongobbler/postgres/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bacongobbler/postgres/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bacongobbler/postgres/git/refs{/sha}","trees_url":"https://api.github.com/repos/bacongobbler/postgres/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bacongobbler/postgres/statuses/{sha}","languages_url":"https://api.github.com/repos/bacongobbler/postgres/languages","stargazers_url":"https://api.github.com/repos/bacongobbler/postgres/stargazers","contributors_url":"https://api.github.com/repos/bacongobbler/postgres/contributors","subscribers_url":"https://api.github.com/repos/bacongobbler/postgres/subscribers","subscription_url":"https://api.github.com/repos/bacongobbler/postgres/subscription","commits_url":"https://api.github.com/repos/bacongobbler/postgres/commits{/sha}","git_commits_url":"https://api.github.com/repos/bacongobbler/postgres/git/commits{/sha}","comments_url":"https://api.github.com/repos/bacongobbler/postgres/comments{/number}","issue_comment_url":"https://api.github.com/repos/bacongobbler/postgres/issues/comments{/number}","contents_url":"https://api.github.com/repos/bacongobbler/postgres/contents/{+path}","compare_url":"https://api.github.com/repos/bacongobbler/postgres/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bacongobbler/postgres/merges","archive_url":"https://api.github.com/repos/bacongobbler/postgres/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bacongobbler/postgres/downloads","issues_url":"https://api.github.com/repos/bacongobbler/postgres/issues{/number}","pulls_url":"https://api.github.com/repos/bacongobbler/postgres/pulls{/number}","milestones_url":"https://api.github.com/repos/bacongobbler/postgres/milestones{/number}","notifications_url":"https://api.github.com/repos/bacongobbler/postgres/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bacongobbler/postgres/labels{/name}","releases_url":"https://api.github.com/repos/bacongobbler/postgres/releases{/id}","deployments_url":"https://api.github.com/repos/bacongobbler/postgres/deployments","created_at":"2015-12-02T22:44:48Z","updated_at":"2016-02-18T18:44:07Z","pushed_at":"2016-03-16T20:53:10Z","git_url":"git://github.com/bacongobbler/postgres.git","ssh_url":"git@github.com:bacongobbler/postgres.git","clone_url":"https://github.com/bacongobbler/postgres.git","svn_url":"https://github.com/bacongobbler/postgres","homepage":"http://deis.io","size":46,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"deis:master","ref":"master","sha":"885ce9b5d4c835398de3cca07c5af2b12d4a0949","user":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"repo":{"id":43973853,"name":"postgres","full_name":"deis/postgres","owner":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deis/postgres","description":"A PostgreSQL database for use in the Deis open source PaaS.","fork":false,"url":"https://api.github.com/repos/deis/postgres","forks_url":"https://api.github.com/repos/deis/postgres/forks","keys_url":"https://api.github.com/repos/deis/postgres/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/postgres/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/postgres/teams","hooks_url":"https://api.github.com/repos/deis/postgres/hooks","issue_events_url":"https://api.github.com/repos/deis/postgres/issues/events{/number}","events_url":"https://api.github.com/repos/deis/postgres/events","assignees_url":"https://api.github.com/repos/deis/postgres/assignees{/user}","branches_url":"https://api.github.com/repos/deis/postgres/branches{/branch}","tags_url":"https://api.github.com/repos/deis/postgres/tags","blobs_url":"https://api.github.com/repos/deis/postgres/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/postgres/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/postgres/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/postgres/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/postgres/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/postgres/languages","stargazers_url":"https://api.github.com/repos/deis/postgres/stargazers","contributors_url":"https://api.github.com/repos/deis/postgres/contributors","subscribers_url":"https://api.github.com/repos/deis/postgres/subscribers","subscription_url":"https://api.github.com/repos/deis/postgres/subscription","commits_url":"https://api.github.com/repos/deis/postgres/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/postgres/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/postgres/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/postgres/issues/comments{/number}","contents_url":"https://api.github.com/repos/deis/postgres/contents/{+path}","compare_url":"https://api.github.com/repos/deis/postgres/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/postgres/merges","archive_url":"https://api.github.com/repos/deis/postgres/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/postgres/downloads","issues_url":"https://api.github.com/repos/deis/postgres/issues{/number}","pulls_url":"https://api.github.com/repos/deis/postgres/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/postgres/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/postgres/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/postgres/labels{/name}","releases_url":"https://api.github.com/repos/deis/postgres/releases{/id}","deployments_url":"https://api.github.com/repos/deis/postgres/deployments","created_at":"2015-10-09T18:45:53Z","updated_at":"2016-03-15T17:17:07Z","pushed_at":"2016-03-16T20:53:10Z","git_url":"git://github.com/deis/postgres.git","ssh_url":"git@github.com:deis/postgres.git","clone_url":"https://github.com/deis/postgres.git","svn_url":"https://github.com/deis/postgres","homepage":"http://deis.com","size":65,"stargazers_count":28,"watchers_count":28,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":11,"forks":9,"open_issues":11,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/postgres/pulls/70"},"html":{"href":"https://github.com/deis/postgres/pull/70"},"issue":{"href":"https://api.github.com/repos/deis/postgres/issues/70"},"comments":{"href":"https://api.github.com/repos/deis/postgres/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/postgres/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/postgres/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deis/postgres/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/deis/postgres/statuses/57a0cb53fad6972303229eed29462bf212bde663"}}}}