{"action":"created","comment":{"url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/comments/42450361","id":42450361,"diff_hunk":"@@ -0,0 +1,34 @@\n+###########################################\n+# Build and run the ci client application\n+#\n+# If docker-machine is present assume that\n+# docker-machine is managing the docker\n+# hosts and us that. Otherwise use the same\n+# machine that this script is running on.\n+###########################################\n+\n+source script/config.sh\n+\n+echo \"Staging ci client application version $WEB_STAGE_VERSION on $STAGE_MACHINE_NAME\"\n+eval \"$(docker-machine env $STAGE_MACHINE_NAME)\"\n+docker info\n+\n+cd ci\n+\n+# Build the container to ensure we pick up any changes\n+docker build -t ci:$WEB_STAGE_VERSION .\n+\n+# Stop, remove and restart the container\n+echo \"Stopping any running (staged) web ci application containers\"\n+docker stop stage_ci\n+docker stop stage_ci1\n+docker stop stage_ci2\n+echo \"Removing any previously (staged) web ci application containers\"\n+docker rm stage_ci\n+docker rm stage_ci1\n+docker rm stage_ci2\n+echo \"Running web ci app containers\"\n+docker run -t -d --name=stage_ci1 ci:$WEB_STAGE_VERSION\n+docker run -t -d --name=stage_ci2 ci:$WEB_STAGE_VERSION\n+","path":"script/stage_ci.sh","position":33,"original_position":33,"commit_id":"bf8dac11c1a235a0b70d7b3e122fc0b6d89a3061","original_commit_id":"bf8dac11c1a235a0b70d7b3e122fc0b6d89a3061","user":{"login":"Mobius5150","id":1120274,"avatar_url":"https://avatars.githubusercontent.com/u/1120274?v=3","gravatar_id":"","url":"https://api.github.com/users/Mobius5150","html_url":"https://github.com/Mobius5150","followers_url":"https://api.github.com/users/Mobius5150/followers","following_url":"https://api.github.com/users/Mobius5150/following{/other_user}","gists_url":"https://api.github.com/users/Mobius5150/gists{/gist_id}","starred_url":"https://api.github.com/users/Mobius5150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mobius5150/subscriptions","organizations_url":"https://api.github.com/users/Mobius5150/orgs","repos_url":"https://api.github.com/users/Mobius5150/repos","events_url":"https://api.github.com/users/Mobius5150/events{/privacy}","received_events_url":"https://api.github.com/users/Mobius5150/received_events","type":"User","site_admin":false},"body":"I haven't tested this script yet and didn't mean to include it in the PR as it was essentially copied from what you had for the web container stage script. That said, I'm going to test stage tonight and when I do that I'll take out the extra stuff I hadn't noticed.","created_at":"2015-10-20T02:52:28Z","updated_at":"2015-10-20T02:52:28Z","html_url":"https://github.com/rgardler/AzureDevTestDeploy/pull/5#discussion_r42450361","pull_request_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/comments/42450361"},"html":{"href":"https://github.com/rgardler/AzureDevTestDeploy/pull/5#discussion_r42450361"},"pull_request":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5","id":48033225,"html_url":"https://github.com/rgardler/AzureDevTestDeploy/pull/5","diff_url":"https://github.com/rgardler/AzureDevTestDeploy/pull/5.diff","patch_url":"https://github.com/rgardler/AzureDevTestDeploy/pull/5.patch","issue_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues/5","number":5,"state":"open","locked":false,"title":"Add Test scenarios","user":{"login":"Mobius5150","id":1120274,"avatar_url":"https://avatars.githubusercontent.com/u/1120274?v=3","gravatar_id":"","url":"https://api.github.com/users/Mobius5150","html_url":"https://github.com/Mobius5150","followers_url":"https://api.github.com/users/Mobius5150/followers","following_url":"https://api.github.com/users/Mobius5150/following{/other_user}","gists_url":"https://api.github.com/users/Mobius5150/gists{/gist_id}","starred_url":"https://api.github.com/users/Mobius5150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mobius5150/subscriptions","organizations_url":"https://api.github.com/users/Mobius5150/orgs","repos_url":"https://api.github.com/users/Mobius5150/repos","events_url":"https://api.github.com/users/Mobius5150/events{/privacy}","received_events_url":"https://api.github.com/users/Mobius5150/received_events","type":"User","site_admin":false},"body":"Adds testing scenarios around load testing a Docker application using Apache Benchmark and another web container to report the results of the tests.\r\n\r\nAlso contains:\r\n - scripts expecting the config.sh file in different places.\r\n - load balancer wanting to load balance absolutely everything on part 80. This is a result of a relatively poorly thought out Docker discover feature and a host of trivial examples of running HAProxy.\r\n - removes funkload and replaces with Apache Benchmark","created_at":"2015-10-19T05:45:12Z","updated_at":"2015-10-20T02:52:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91f180f4fd4bbe3d809b91710a5b43dfd44b382c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5/commits","review_comments_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5/comments","review_comment_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues/5/comments","statuses_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/statuses/bf8dac11c1a235a0b70d7b3e122fc0b6d89a3061","head":{"label":"Mobius5150:master","ref":"master","sha":"bf8dac11c1a235a0b70d7b3e122fc0b6d89a3061","user":{"login":"Mobius5150","id":1120274,"avatar_url":"https://avatars.githubusercontent.com/u/1120274?v=3","gravatar_id":"","url":"https://api.github.com/users/Mobius5150","html_url":"https://github.com/Mobius5150","followers_url":"https://api.github.com/users/Mobius5150/followers","following_url":"https://api.github.com/users/Mobius5150/following{/other_user}","gists_url":"https://api.github.com/users/Mobius5150/gists{/gist_id}","starred_url":"https://api.github.com/users/Mobius5150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mobius5150/subscriptions","organizations_url":"https://api.github.com/users/Mobius5150/orgs","repos_url":"https://api.github.com/users/Mobius5150/repos","events_url":"https://api.github.com/users/Mobius5150/events{/privacy}","received_events_url":"https://api.github.com/users/Mobius5150/received_events","type":"User","site_admin":false},"repo":{"id":44213345,"name":"AzureDevTestDeploy","full_name":"Mobius5150/AzureDevTestDeploy","owner":{"login":"Mobius5150","id":1120274,"avatar_url":"https://avatars.githubusercontent.com/u/1120274?v=3","gravatar_id":"","url":"https://api.github.com/users/Mobius5150","html_url":"https://github.com/Mobius5150","followers_url":"https://api.github.com/users/Mobius5150/followers","following_url":"https://api.github.com/users/Mobius5150/following{/other_user}","gists_url":"https://api.github.com/users/Mobius5150/gists{/gist_id}","starred_url":"https://api.github.com/users/Mobius5150/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mobius5150/subscriptions","organizations_url":"https://api.github.com/users/Mobius5150/orgs","repos_url":"https://api.github.com/users/Mobius5150/repos","events_url":"https://api.github.com/users/Mobius5150/events{/privacy}","received_events_url":"https://api.github.com/users/Mobius5150/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mobius5150/AzureDevTestDeploy","description":"An experiment in using various Dev, Test and Deploy tools with Azure.","fork":true,"url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy","forks_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/forks","keys_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/teams","hooks_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/hooks","issue_events_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/issues/events{/number}","events_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/events","assignees_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/assignees{/user}","branches_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/branches{/branch}","tags_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/tags","blobs_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/statuses/{sha}","languages_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/languages","stargazers_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/stargazers","contributors_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/contributors","subscribers_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/subscribers","subscription_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/subscription","commits_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/contents/{+path}","compare_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/merges","archive_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/downloads","issues_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/issues{/number}","pulls_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/pulls{/number}","milestones_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/milestones{/number}","notifications_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/labels{/name}","releases_url":"https://api.github.com/repos/Mobius5150/AzureDevTestDeploy/releases{/id}","created_at":"2015-10-14T00:13:37Z","updated_at":"2015-10-14T00:13:38Z","pushed_at":"2015-10-19T06:09:33Z","git_url":"git://github.com/Mobius5150/AzureDevTestDeploy.git","ssh_url":"git@github.com:Mobius5150/AzureDevTestDeploy.git","clone_url":"https://github.com/Mobius5150/AzureDevTestDeploy.git","svn_url":"https://github.com/Mobius5150/AzureDevTestDeploy","homepage":null,"size":665,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"rgardler:master","ref":"master","sha":"387732f7b416061e7c776ad1ff8534c747d38cb5","user":{"login":"rgardler","id":250240,"avatar_url":"https://avatars.githubusercontent.com/u/250240?v=3","gravatar_id":"","url":"https://api.github.com/users/rgardler","html_url":"https://github.com/rgardler","followers_url":"https://api.github.com/users/rgardler/followers","following_url":"https://api.github.com/users/rgardler/following{/other_user}","gists_url":"https://api.github.com/users/rgardler/gists{/gist_id}","starred_url":"https://api.github.com/users/rgardler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgardler/subscriptions","organizations_url":"https://api.github.com/users/rgardler/orgs","repos_url":"https://api.github.com/users/rgardler/repos","events_url":"https://api.github.com/users/rgardler/events{/privacy}","received_events_url":"https://api.github.com/users/rgardler/received_events","type":"User","site_admin":false},"repo":{"id":36404646,"name":"AzureDevTestDeploy","full_name":"rgardler/AzureDevTestDeploy","owner":{"login":"rgardler","id":250240,"avatar_url":"https://avatars.githubusercontent.com/u/250240?v=3","gravatar_id":"","url":"https://api.github.com/users/rgardler","html_url":"https://github.com/rgardler","followers_url":"https://api.github.com/users/rgardler/followers","following_url":"https://api.github.com/users/rgardler/following{/other_user}","gists_url":"https://api.github.com/users/rgardler/gists{/gist_id}","starred_url":"https://api.github.com/users/rgardler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgardler/subscriptions","organizations_url":"https://api.github.com/users/rgardler/orgs","repos_url":"https://api.github.com/users/rgardler/repos","events_url":"https://api.github.com/users/rgardler/events{/privacy}","received_events_url":"https://api.github.com/users/rgardler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rgardler/AzureDevTestDeploy","description":"An experiment in using various Dev, Test and Deploy tools with Azure.","fork":false,"url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy","forks_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/forks","keys_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/teams","hooks_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/hooks","issue_events_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues/events{/number}","events_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/events","assignees_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/assignees{/user}","branches_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/branches{/branch}","tags_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/tags","blobs_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/statuses/{sha}","languages_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/languages","stargazers_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/stargazers","contributors_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/contributors","subscribers_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/subscribers","subscription_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/subscription","commits_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/contents/{+path}","compare_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/merges","archive_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/downloads","issues_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues{/number}","pulls_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls{/number}","milestones_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/milestones{/number}","notifications_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/labels{/name}","releases_url":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/releases{/id}","created_at":"2015-05-28T00:33:12Z","updated_at":"2015-10-19T08:27:59Z","pushed_at":"2015-10-19T18:28:32Z","git_url":"git://github.com/rgardler/AzureDevTestDeploy.git","ssh_url":"git@github.com:rgardler/AzureDevTestDeploy.git","clone_url":"https://github.com/rgardler/AzureDevTestDeploy.git","svn_url":"https://github.com/rgardler/AzureDevTestDeploy","homepage":null,"size":782,"stargazers_count":11,"watchers_count":11,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5"},"html":{"href":"https://github.com/rgardler/AzureDevTestDeploy/pull/5"},"issue":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues/5"},"comments":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/rgardler/AzureDevTestDeploy/statuses/bf8dac11c1a235a0b70d7b3e122fc0b6d89a3061"}}}}