{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/netguru/capistrano-docker/pulls/4","id":77941212,"html_url":"https://github.com/netguru/capistrano-docker/pull/4","diff_url":"https://github.com/netguru/capistrano-docker/pull/4.diff","patch_url":"https://github.com/netguru/capistrano-docker/pull/4.patch","issue_url":"https://api.github.com/repos/netguru/capistrano-docker/issues/4","number":4,"state":"open","locked":false,"title":"Add compose down task","user":{"login":"tcoenraad","id":1204923,"avatar_url":"https://avatars.githubusercontent.com/u/1204923?v=3","gravatar_id":"","url":"https://api.github.com/users/tcoenraad","html_url":"https://github.com/tcoenraad","followers_url":"https://api.github.com/users/tcoenraad/followers","following_url":"https://api.github.com/users/tcoenraad/following{/other_user}","gists_url":"https://api.github.com/users/tcoenraad/gists{/gist_id}","starred_url":"https://api.github.com/users/tcoenraad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcoenraad/subscriptions","organizations_url":"https://api.github.com/users/tcoenraad/orgs","repos_url":"https://api.github.com/users/tcoenraad/repos","events_url":"https://api.github.com/users/tcoenraad/events{/privacy}","received_events_url":"https://api.github.com/users/tcoenraad/received_events","type":"User","site_admin":false},"body":"Executing `docker:deploy:compose:start` and `docker:deploy:compose:stop` repetitively ends up having too much network interfaces, as described in https://github.com/docker/docker/issues/23971#issuecomment-229753151\r\n\r\n`docker-compose down` however, removes all network interfaces as desired. This PR adds a task for this.\r\n\r\nAfter applying this PR\r\n```ruby\r\nnamespace :deploy do\r\n  before :started, 'docker:compose:down'\r\nend\r\n```\r\ncan be added to the desired stage to have a full clean-up before executing the `docker:deploy:compose:start` task.","created_at":"2016-07-19T09:06:33Z","updated_at":"2016-07-19T09:06:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/netguru/capistrano-docker/pulls/4/commits","review_comments_url":"https://api.github.com/repos/netguru/capistrano-docker/pulls/4/comments","review_comment_url":"https://api.github.com/repos/netguru/capistrano-docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/capistrano-docker/issues/4/comments","statuses_url":"https://api.github.com/repos/netguru/capistrano-docker/statuses/00f75e620a343ba61fb024827b87441c338604e7","head":{"label":"tcoenraad:add_compose_down_command","ref":"add_compose_down_command","sha":"00f75e620a343ba61fb024827b87441c338604e7","user":{"login":"tcoenraad","id":1204923,"avatar_url":"https://avatars.githubusercontent.com/u/1204923?v=3","gravatar_id":"","url":"https://api.github.com/users/tcoenraad","html_url":"https://github.com/tcoenraad","followers_url":"https://api.github.com/users/tcoenraad/followers","following_url":"https://api.github.com/users/tcoenraad/following{/other_user}","gists_url":"https://api.github.com/users/tcoenraad/gists{/gist_id}","starred_url":"https://api.github.com/users/tcoenraad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcoenraad/subscriptions","organizations_url":"https://api.github.com/users/tcoenraad/orgs","repos_url":"https://api.github.com/users/tcoenraad/repos","events_url":"https://api.github.com/users/tcoenraad/events{/privacy}","received_events_url":"https://api.github.com/users/tcoenraad/received_events","type":"User","site_admin":false},"repo":{"id":63676835,"name":"capistrano-docker","full_name":"tcoenraad/capistrano-docker","owner":{"login":"tcoenraad","id":1204923,"avatar_url":"https://avatars.githubusercontent.com/u/1204923?v=3","gravatar_id":"","url":"https://api.github.com/users/tcoenraad","html_url":"https://github.com/tcoenraad","followers_url":"https://api.github.com/users/tcoenraad/followers","following_url":"https://api.github.com/users/tcoenraad/following{/other_user}","gists_url":"https://api.github.com/users/tcoenraad/gists{/gist_id}","starred_url":"https://api.github.com/users/tcoenraad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcoenraad/subscriptions","organizations_url":"https://api.github.com/users/tcoenraad/orgs","repos_url":"https://api.github.com/users/tcoenraad/repos","events_url":"https://api.github.com/users/tcoenraad/events{/privacy}","received_events_url":"https://api.github.com/users/tcoenraad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tcoenraad/capistrano-docker","description":null,"fork":true,"url":"https://api.github.com/repos/tcoenraad/capistrano-docker","forks_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/forks","keys_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/teams","hooks_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/hooks","issue_events_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/issues/events{/number}","events_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/events","assignees_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/assignees{/user}","branches_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/branches{/branch}","tags_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/tags","blobs_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/languages","stargazers_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/stargazers","contributors_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/contributors","subscribers_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/subscribers","subscription_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/subscription","commits_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/contents/{+path}","compare_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/merges","archive_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/downloads","issues_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/issues{/number}","pulls_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/labels{/name}","releases_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/releases{/id}","deployments_url":"https://api.github.com/repos/tcoenraad/capistrano-docker/deployments","created_at":"2016-07-19T08:41:57Z","updated_at":"2016-07-19T08:41:59Z","pushed_at":"2016-07-19T08:49:50Z","git_url":"git://github.com/tcoenraad/capistrano-docker.git","ssh_url":"git@github.com:tcoenraad/capistrano-docker.git","clone_url":"https://github.com/tcoenraad/capistrano-docker.git","svn_url":"https://github.com/tcoenraad/capistrano-docker","homepage":null,"size":27,"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":"netguru:master","ref":"master","sha":"146177c3849d3f489dd23d1654d86848252ae433","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":45475163,"name":"capistrano-docker","full_name":"netguru/capistrano-docker","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/capistrano-docker","description":"","fork":false,"url":"https://api.github.com/repos/netguru/capistrano-docker","forks_url":"https://api.github.com/repos/netguru/capistrano-docker/forks","keys_url":"https://api.github.com/repos/netguru/capistrano-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/capistrano-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/capistrano-docker/teams","hooks_url":"https://api.github.com/repos/netguru/capistrano-docker/hooks","issue_events_url":"https://api.github.com/repos/netguru/capistrano-docker/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/capistrano-docker/events","assignees_url":"https://api.github.com/repos/netguru/capistrano-docker/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/capistrano-docker/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/capistrano-docker/tags","blobs_url":"https://api.github.com/repos/netguru/capistrano-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/capistrano-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/capistrano-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/capistrano-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/capistrano-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/capistrano-docker/languages","stargazers_url":"https://api.github.com/repos/netguru/capistrano-docker/stargazers","contributors_url":"https://api.github.com/repos/netguru/capistrano-docker/contributors","subscribers_url":"https://api.github.com/repos/netguru/capistrano-docker/subscribers","subscription_url":"https://api.github.com/repos/netguru/capistrano-docker/subscription","commits_url":"https://api.github.com/repos/netguru/capistrano-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/capistrano-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/capistrano-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/capistrano-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/capistrano-docker/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/capistrano-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/capistrano-docker/merges","archive_url":"https://api.github.com/repos/netguru/capistrano-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/capistrano-docker/downloads","issues_url":"https://api.github.com/repos/netguru/capistrano-docker/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/capistrano-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/capistrano-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/capistrano-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/capistrano-docker/labels{/name}","releases_url":"https://api.github.com/repos/netguru/capistrano-docker/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/capistrano-docker/deployments","created_at":"2015-11-03T15:18:31Z","updated_at":"2016-07-18T22:17:36Z","pushed_at":"2016-06-20T16:39:28Z","git_url":"git://github.com/netguru/capistrano-docker.git","ssh_url":"git@github.com:netguru/capistrano-docker.git","clone_url":"https://github.com/netguru/capistrano-docker.git","svn_url":"https://github.com/netguru/capistrano-docker","homepage":null,"size":27,"stargazers_count":19,"watchers_count":19,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/capistrano-docker/pulls/4"},"html":{"href":"https://github.com/netguru/capistrano-docker/pull/4"},"issue":{"href":"https://api.github.com/repos/netguru/capistrano-docker/issues/4"},"comments":{"href":"https://api.github.com/repos/netguru/capistrano-docker/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/capistrano-docker/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/capistrano-docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/capistrano-docker/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/capistrano-docker/statuses/00f75e620a343ba61fb024827b87441c338604e7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"tcoenraad"}}