{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments/35320578","id":35320578,"diff_hunk":"@@ -36,6 +36,7 @@\n .Trashes\n ehthumbs.db\n Thumbs.db\n+.ruby-version","path":".gitignore","position":4,"original_position":4,"commit_id":"a36430ebb646c803095b009221c9d6fb1305a008","original_commit_id":"a36430ebb646c803095b009221c9d6fb1305a008","user":{"login":"dhilton","id":47292,"avatar_url":"https://avatars.githubusercontent.com/u/47292?v=3","gravatar_id":"","url":"https://api.github.com/users/dhilton","html_url":"https://github.com/dhilton","followers_url":"https://api.github.com/users/dhilton/followers","following_url":"https://api.github.com/users/dhilton/following{/other_user}","gists_url":"https://api.github.com/users/dhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/dhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhilton/subscriptions","organizations_url":"https://api.github.com/users/dhilton/orgs","repos_url":"https://api.github.com/users/dhilton/repos","events_url":"https://api.github.com/users/dhilton/events{/privacy}","received_events_url":"https://api.github.com/users/dhilton/received_events","type":"User","site_admin":false},"body":"Why are we gitignoring the ruby-version? We want that file to stay with the repo?","created_at":"2015-07-23T13:29:53Z","updated_at":"2015-07-23T13:29:53Z","html_url":"https://github.com/alphagov/tsuru-performance-tests/pull/2#discussion_r35320578","pull_request_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments/35320578"},"html":{"href":"https://github.com/alphagov/tsuru-performance-tests/pull/2#discussion_r35320578"},"pull_request":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2","id":40010775,"html_url":"https://github.com/alphagov/tsuru-performance-tests/pull/2","diff_url":"https://github.com/alphagov/tsuru-performance-tests/pull/2.diff","patch_url":"https://github.com/alphagov/tsuru-performance-tests/pull/2.patch","issue_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/2","number":2,"state":"closed","locked":false,"title":"[#97906714] Feature/deploy lots of teams with lost of apps","user":{"login":"RichardKnop","id":2325888,"avatar_url":"https://avatars.githubusercontent.com/u/2325888?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardKnop","html_url":"https://github.com/RichardKnop","followers_url":"https://api.github.com/users/RichardKnop/followers","following_url":"https://api.github.com/users/RichardKnop/following{/other_user}","gists_url":"https://api.github.com/users/RichardKnop/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardKnop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardKnop/subscriptions","organizations_url":"https://api.github.com/users/RichardKnop/orgs","repos_url":"https://api.github.com/users/RichardKnop/repos","events_url":"https://api.github.com/users/RichardKnop/events{/privacy}","received_events_url":"https://api.github.com/users/RichardKnop/received_events","type":"User","site_admin":false},"body":"What\r\n-------\r\n\r\nWe have added a new Ruby script to deploy lots of teams and apps. Code is located inside `bulk_deploy` directory.\r\n\r\nYou can see all options of the script by calling it without arguments:\r\n\r\n```\r\nbundle exec ruby deploy.rb -e richard -h tsuru2.paas.alphagov.co.uk\r\nUsage: bundle exec deploy.rb action [options]\r\nExample: bundle exec deploy.rb --environment perf-env --host-suffix tsuru2.paas.alphagov.co.uk apply\r\n    -e, --environment=e              Environment [Required]\r\n    -h, --host-suffix=h              Host suffix [Required]\r\n    -T, --api-token=T                API token [Required]\r\n    -S, --search-api-token=S         Search API token [Required]\r\n    -t, --team-count=t               Team count [Default: 2]\r\n    -u, --users-per-team=u           Users per team [Default: 7]\r\n    -a, --apps-per-team=a            Applications per team [Default: 5]\r\n    -l, --log-level=l                Log level [Default: info]\r\n    -n, --units_per_app=n            Units per application [Default: 3]\r\n    -s, --state-file=f               State file [Default: /Users/richardknop/github.com/alphagov/tsuru-performance-tests/bulk_deploy/deploy.state]\r\n```\r\n\r\nThere are two actions:\r\n\r\n  * apply: deploys teams and apps\r\n  * destroy: removes deployed teams and apps (based on the state file)\r\n\r\nBy default, these 5 apps are deployed right now:\r\n\r\n  * example Java Jetty app\r\n  * example Flask app\r\n  * Digital Marketplace admin frontend app\r\n  * Digital Marketplace admin suppliers app\r\n  * Digital Marketplace admin buyers app\r\n\r\nDigital Marketplace backend apps are not deployed yet, so frontend apps use preview environment.\r\n\r\nUsage\r\n---------\r\n\r\n```\r\nbundle exec ruby deploy.rb -e richard -h tsuru2.paas.alphagov.co.uk apply -t 2 -n 3 -T apitoken -S searchapitoken\r\n```\r\n\r\nWill create 2 teams, each with 7 users and deploy 5 apps (listed above) for the each team with 3 units per app.\r\n\r\nIt will use `richard` environment on GCE.\r\n\r\nDeployed apps can be removed by running the destroy command:\r\n\r\n```\r\nbundle exec ruby deploy.rb -e richard -h tsuru2.paas.alphagov.co.uk destroy -t 2 -n 3\r\n```\r\n\r\nReview\r\n----------\r\n\r\nAnybody except Richard or Colin should review this PR.","created_at":"2015-07-15T11:01:59Z","updated_at":"2015-07-23T13:29:53Z","closed_at":"2015-07-22T15:14:08Z","merged_at":"2015-07-22T15:14:08Z","merge_commit_sha":"7d6cb42a491c441280e5430a7772be671b6038a2","assignee":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2/commits","review_comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2/comments","review_comment_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/2/comments","statuses_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/a36430ebb646c803095b009221c9d6fb1305a008","head":{"label":"alphagov:feature/deploy-lots-of-teams-with-lost-of-apps","ref":"feature/deploy-lots-of-teams-with-lost-of-apps","sha":"a36430ebb646c803095b009221c9d6fb1305a008","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":38481089,"name":"tsuru-performance-tests","full_name":"alphagov/tsuru-performance-tests","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tsuru-performance-tests","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests","forks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/releases{/id}","created_at":"2015-07-03T08:15:28Z","updated_at":"2015-07-08T12:59:38Z","pushed_at":"2015-07-23T10:45:14Z","git_url":"git://github.com/alphagov/tsuru-performance-tests.git","ssh_url":"git@github.com:alphagov/tsuru-performance-tests.git","clone_url":"https://github.com/alphagov/tsuru-performance-tests.git","svn_url":"https://github.com/alphagov/tsuru-performance-tests","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"alphagov:master","ref":"master","sha":"2f3f89f31329cd5075df35db66a950cdcc07c835","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":38481089,"name":"tsuru-performance-tests","full_name":"alphagov/tsuru-performance-tests","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tsuru-performance-tests","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests","forks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/releases{/id}","created_at":"2015-07-03T08:15:28Z","updated_at":"2015-07-08T12:59:38Z","pushed_at":"2015-07-23T10:45:14Z","git_url":"git://github.com/alphagov/tsuru-performance-tests.git","ssh_url":"git@github.com:alphagov/tsuru-performance-tests.git","clone_url":"https://github.com/alphagov/tsuru-performance-tests.git","svn_url":"https://github.com/alphagov/tsuru-performance-tests","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2"},"html":{"href":"https://github.com/alphagov/tsuru-performance-tests/pull/2"},"issue":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/2"},"comments":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/a36430ebb646c803095b009221c9d6fb1305a008"}}}}