{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/generator-docker/pulls/comments/70139678","id":70139678,"diff_hunk":"@@ -48,31 +49,43 @@ $framework = \"netcoreapp1.0\"<% } %>\n \n # Kills all running containers of an image and then removes them.\n function CleanAll () {\n-    # List all running containers that use $imageName, kill them and then remove them.\n-    docker ps -a | select-string -pattern $imageName | foreach { $containerId =  $_.ToString().split()[0]; docker kill $containerId *>&1 | Out-Null; docker rm $containerId *>&1 | Out-Null }\n+    $composeFileName = \"docker-compose.yml\"\n+    if ($Environment -ne \"Release\") {\n+        $composeFileName = \"docker-compose.$Environment.yml\"","path":"generators/app/templates/_dockerTaskGeneric.ps1","position":16,"original_position":16,"commit_id":"21d779d28fd493c93f921bf519d2871e679b812f","original_commit_id":"21d779d28fd493c93f921bf519d2871e679b812f","user":{"login":"saurabsa","id":16260425,"avatar_url":"https://avatars.githubusercontent.com/u/16260425?v=3","gravatar_id":"","url":"https://api.github.com/users/saurabsa","html_url":"https://github.com/saurabsa","followers_url":"https://api.github.com/users/saurabsa/followers","following_url":"https://api.github.com/users/saurabsa/following{/other_user}","gists_url":"https://api.github.com/users/saurabsa/gists{/gist_id}","starred_url":"https://api.github.com/users/saurabsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saurabsa/subscriptions","organizations_url":"https://api.github.com/users/saurabsa/orgs","repos_url":"https://api.github.com/users/saurabsa/repos","events_url":"https://api.github.com/users/saurabsa/events{/privacy}","received_events_url":"https://api.github.com/users/saurabsa/received_events","type":"User","site_admin":false},"body":"Do you want to include $($Environment.ToLower()), as we did it in Docker Tools?","created_at":"2016-07-08T20:56:41Z","updated_at":"2016-07-08T20:56:41Z","html_url":"https://github.com/Microsoft/generator-docker/pull/101#discussion_r70139678","pull_request_url":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/generator-docker/pulls/comments/70139678"},"html":{"href":"https://github.com/Microsoft/generator-docker/pull/101#discussion_r70139678"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101","id":76793082,"html_url":"https://github.com/Microsoft/generator-docker/pull/101","diff_url":"https://github.com/Microsoft/generator-docker/pull/101.diff","patch_url":"https://github.com/Microsoft/generator-docker/pull/101.patch","issue_url":"https://api.github.com/repos/Microsoft/generator-docker/issues/101","number":101,"state":"open","locked":false,"title":"Switch to using docker-compose for build.","user":{"login":"NCarlsonMSFT","id":14239288,"avatar_url":"https://avatars.githubusercontent.com/u/14239288?v=3","gravatar_id":"","url":"https://api.github.com/users/NCarlsonMSFT","html_url":"https://github.com/NCarlsonMSFT","followers_url":"https://api.github.com/users/NCarlsonMSFT/followers","following_url":"https://api.github.com/users/NCarlsonMSFT/following{/other_user}","gists_url":"https://api.github.com/users/NCarlsonMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/NCarlsonMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCarlsonMSFT/subscriptions","organizations_url":"https://api.github.com/users/NCarlsonMSFT/orgs","repos_url":"https://api.github.com/users/NCarlsonMSFT/repos","events_url":"https://api.github.com/users/NCarlsonMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/NCarlsonMSFT/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-08T18:20:38Z","updated_at":"2016-07-08T20:56:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1aa60f7f20187730c4358c6040f849a2b4845c73","assignee":{"login":"saurabsa","id":16260425,"avatar_url":"https://avatars.githubusercontent.com/u/16260425?v=3","gravatar_id":"","url":"https://api.github.com/users/saurabsa","html_url":"https://github.com/saurabsa","followers_url":"https://api.github.com/users/saurabsa/followers","following_url":"https://api.github.com/users/saurabsa/following{/other_user}","gists_url":"https://api.github.com/users/saurabsa/gists{/gist_id}","starred_url":"https://api.github.com/users/saurabsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saurabsa/subscriptions","organizations_url":"https://api.github.com/users/saurabsa/orgs","repos_url":"https://api.github.com/users/saurabsa/repos","events_url":"https://api.github.com/users/saurabsa/events{/privacy}","received_events_url":"https://api.github.com/users/saurabsa/received_events","type":"User","site_admin":false},"assignees":[{"login":"saurabsa","id":16260425,"avatar_url":"https://avatars.githubusercontent.com/u/16260425?v=3","gravatar_id":"","url":"https://api.github.com/users/saurabsa","html_url":"https://github.com/saurabsa","followers_url":"https://api.github.com/users/saurabsa/followers","following_url":"https://api.github.com/users/saurabsa/following{/other_user}","gists_url":"https://api.github.com/users/saurabsa/gists{/gist_id}","starred_url":"https://api.github.com/users/saurabsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saurabsa/subscriptions","organizations_url":"https://api.github.com/users/saurabsa/orgs","repos_url":"https://api.github.com/users/saurabsa/repos","events_url":"https://api.github.com/users/saurabsa/events{/privacy}","received_events_url":"https://api.github.com/users/saurabsa/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101/commits","review_comments_url":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101/comments","review_comment_url":"https://api.github.com/repos/Microsoft/generator-docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/generator-docker/issues/101/comments","statuses_url":"https://api.github.com/repos/Microsoft/generator-docker/statuses/21d779d28fd493c93f921bf519d2871e679b812f","head":{"label":"Microsoft:dev/ncarlson/MoreCompose","ref":"dev/ncarlson/MoreCompose","sha":"21d779d28fd493c93f921bf519d2871e679b812f","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":44416141,"name":"generator-docker","full_name":"Microsoft/generator-docker","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/generator-docker","description":"Yeoman generator for Docker","fork":false,"url":"https://api.github.com/repos/Microsoft/generator-docker","forks_url":"https://api.github.com/repos/Microsoft/generator-docker/forks","keys_url":"https://api.github.com/repos/Microsoft/generator-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/generator-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/generator-docker/teams","hooks_url":"https://api.github.com/repos/Microsoft/generator-docker/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/generator-docker/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/generator-docker/events","assignees_url":"https://api.github.com/repos/Microsoft/generator-docker/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/generator-docker/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/generator-docker/tags","blobs_url":"https://api.github.com/repos/Microsoft/generator-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/generator-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/generator-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/generator-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/generator-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/generator-docker/languages","stargazers_url":"https://api.github.com/repos/Microsoft/generator-docker/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/generator-docker/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/generator-docker/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/generator-docker/subscription","commits_url":"https://api.github.com/repos/Microsoft/generator-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/generator-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/generator-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/generator-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/generator-docker/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/generator-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/generator-docker/merges","archive_url":"https://api.github.com/repos/Microsoft/generator-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/generator-docker/downloads","issues_url":"https://api.github.com/repos/Microsoft/generator-docker/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/generator-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/generator-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/generator-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/generator-docker/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/generator-docker/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/generator-docker/deployments","created_at":"2015-10-16T23:38:31Z","updated_at":"2016-07-08T05:48:17Z","pushed_at":"2016-07-08T18:20:38Z","git_url":"git://github.com/Microsoft/generator-docker.git","ssh_url":"git@github.com:Microsoft/generator-docker.git","clone_url":"https://github.com/Microsoft/generator-docker.git","svn_url":"https://github.com/Microsoft/generator-docker","homepage":"","size":249,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":19,"forks":9,"open_issues":19,"watchers":78,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"af6ad81923bf6b51e6bb3cd3317a2938ae5c497b","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":44416141,"name":"generator-docker","full_name":"Microsoft/generator-docker","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/generator-docker","description":"Yeoman generator for Docker","fork":false,"url":"https://api.github.com/repos/Microsoft/generator-docker","forks_url":"https://api.github.com/repos/Microsoft/generator-docker/forks","keys_url":"https://api.github.com/repos/Microsoft/generator-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/generator-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/generator-docker/teams","hooks_url":"https://api.github.com/repos/Microsoft/generator-docker/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/generator-docker/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/generator-docker/events","assignees_url":"https://api.github.com/repos/Microsoft/generator-docker/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/generator-docker/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/generator-docker/tags","blobs_url":"https://api.github.com/repos/Microsoft/generator-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/generator-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/generator-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/generator-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/generator-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/generator-docker/languages","stargazers_url":"https://api.github.com/repos/Microsoft/generator-docker/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/generator-docker/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/generator-docker/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/generator-docker/subscription","commits_url":"https://api.github.com/repos/Microsoft/generator-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/generator-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/generator-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/generator-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/generator-docker/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/generator-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/generator-docker/merges","archive_url":"https://api.github.com/repos/Microsoft/generator-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/generator-docker/downloads","issues_url":"https://api.github.com/repos/Microsoft/generator-docker/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/generator-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/generator-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/generator-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/generator-docker/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/generator-docker/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/generator-docker/deployments","created_at":"2015-10-16T23:38:31Z","updated_at":"2016-07-08T05:48:17Z","pushed_at":"2016-07-08T18:20:38Z","git_url":"git://github.com/Microsoft/generator-docker.git","ssh_url":"git@github.com:Microsoft/generator-docker.git","clone_url":"https://github.com/Microsoft/generator-docker.git","svn_url":"https://github.com/Microsoft/generator-docker","homepage":"","size":249,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":19,"forks":9,"open_issues":19,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101"},"html":{"href":"https://github.com/Microsoft/generator-docker/pull/101"},"issue":{"href":"https://api.github.com/repos/Microsoft/generator-docker/issues/101"},"comments":{"href":"https://api.github.com/repos/Microsoft/generator-docker/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/generator-docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/generator-docker/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/generator-docker/statuses/21d779d28fd493c93f921bf519d2871e679b812f"}}}}
{"actor":{"display_login":"saurabsa"}}