{"action":"created","comment":{"url":"https://api.github.com/repos/appcelerator/amp/pulls/comments/91525837","pull_request_review_id":12034773,"id":91525837,"diff_hunk":"@@ -0,0 +1,102 @@\n+package main\n+\n+import (\n+\t\"github.com/spf13/cobra\"\n+\t\"log\"\n+)\n+\n+var bootstrapCmd = &cobra.Command{\n+\tUse:     \"bootstrap\",\n+\tShort:   \"Bootstraps the node\",\n+\tLong:    `Installs Docker, setups Swarm, run the AMP agent`,\n+\tAliases: []string{\"bs\"},\n+\tRun: func(cmd *cobra.Command, args []string) {\n+\t\tclient.bootstrap(cmd, args)\n+\t},\n+}\n+\n+// Flag variables\n+var SwarmManagerHost string\n+var SwarmManagerPort string\n+var SwarmJoinToken string\n+var AmpImageTag string\n+var CreateSwarm bool\n+var Manager bool","path":"cmd/amp-cluster/bootstrap.go","position":24,"original_position":24,"commit_id":"f2b2fb86a17a538b6ed8553f7dea24f25c4d73c0","original_commit_id":"7fecacecf0085f0f00af8341ce9608d8979c049c","user":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars.githubusercontent.com/u/11839374?v=3","gravatar_id":"","url":"https://api.github.com/users/ndegory","html_url":"https://github.com/ndegory","followers_url":"https://api.github.com/users/ndegory/followers","following_url":"https://api.github.com/users/ndegory/following{/other_user}","gists_url":"https://api.github.com/users/ndegory/gists{/gist_id}","starred_url":"https://api.github.com/users/ndegory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndegory/subscriptions","organizations_url":"https://api.github.com/users/ndegory/orgs","repos_url":"https://api.github.com/users/ndegory/repos","events_url":"https://api.github.com/users/ndegory/events{/privacy}","received_events_url":"https://api.github.com/users/ndegory/received_events","type":"User","site_admin":false},"body":"ok, done","created_at":"2016-12-08T14:42:06Z","updated_at":"2016-12-08T14:42:06Z","html_url":"https://github.com/appcelerator/amp/pull/528#discussion_r91525837","pull_request_url":"https://api.github.com/repos/appcelerator/amp/pulls/528","_links":{"self":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/comments/91525837"},"html":{"href":"https://github.com/appcelerator/amp/pull/528#discussion_r91525837"},"pull_request":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/528"}}},"pull_request":{"url":"https://api.github.com/repos/appcelerator/amp/pulls/528","id":96948093,"html_url":"https://github.com/appcelerator/amp/pull/528","diff_url":"https://github.com/appcelerator/amp/pull/528.diff","patch_url":"https://github.com/appcelerator/amp/pull/528.patch","issue_url":"https://api.github.com/repos/appcelerator/amp/issues/528","number":528,"state":"open","locked":false,"title":"AMP Bootstrap","user":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars.githubusercontent.com/u/11839374?v=3","gravatar_id":"","url":"https://api.github.com/users/ndegory","html_url":"https://github.com/ndegory","followers_url":"https://api.github.com/users/ndegory/followers","following_url":"https://api.github.com/users/ndegory/following{/other_user}","gists_url":"https://api.github.com/users/ndegory/gists{/gist_id}","starred_url":"https://api.github.com/users/ndegory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndegory/subscriptions","organizations_url":"https://api.github.com/users/ndegory/orgs","repos_url":"https://api.github.com/users/ndegory/repos","events_url":"https://api.github.com/users/ndegory/events{/privacy}","received_events_url":"https://api.github.com/users/ndegory/received_events","type":"User","site_admin":false},"body":"resolves #306 \r\n\r\nsubcommand of amp cluster cli to bootstrap a node (Docker, Swarm, cluster agent and server services)\r\n\r\n```\r\n$ amp-cluster bootstrap -h\r\nInstalls Docker, setups Swarm, run the AMP agent\r\n\r\nUsage:\r\n  amp-cluster bootstrap [flags]\r\n\r\nAliases:\r\n  bootstrap, bs\r\n\r\n\r\nFlags:\r\n  -c, --create         initializes the Swarm (needs option -m)\r\n      --host string    Swarm manager hostname\r\n  -m, --manager        bootstraps a Swarm manager node\r\n      --port string    Swarm manager port (default \"2377\")\r\n      --tag string     AMP image version (default \"v0.4.0-dev\")\r\n      --token string   Swarm join token\r\n\r\nGlobal Flags:\r\n      --config string   Config file (default is $HOME/.amp.yaml)\r\n      --debug           display debug information\r\n      --server string   define the remote server address (default \"127.0.0.1:31315\")\r\n      --silence         No output\r\n  -v, --verbose         Verbose output\r\n```","created_at":"2016-12-07T15:43:12Z","updated_at":"2016-12-08T14:42:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e0ecbb117c763b562607b525194ce2ef16d6802","assignee":{"login":"freignat91","id":11798891,"avatar_url":"https://avatars.githubusercontent.com/u/11798891?v=3","gravatar_id":"","url":"https://api.github.com/users/freignat91","html_url":"https://github.com/freignat91","followers_url":"https://api.github.com/users/freignat91/followers","following_url":"https://api.github.com/users/freignat91/following{/other_user}","gists_url":"https://api.github.com/users/freignat91/gists{/gist_id}","starred_url":"https://api.github.com/users/freignat91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freignat91/subscriptions","organizations_url":"https://api.github.com/users/freignat91/orgs","repos_url":"https://api.github.com/users/freignat91/repos","events_url":"https://api.github.com/users/freignat91/events{/privacy}","received_events_url":"https://api.github.com/users/freignat91/received_events","type":"User","site_admin":false},"assignees":[{"login":"freignat91","id":11798891,"avatar_url":"https://avatars.githubusercontent.com/u/11798891?v=3","gravatar_id":"","url":"https://api.github.com/users/freignat91","html_url":"https://github.com/freignat91","followers_url":"https://api.github.com/users/freignat91/followers","following_url":"https://api.github.com/users/freignat91/following{/other_user}","gists_url":"https://api.github.com/users/freignat91/gists{/gist_id}","starred_url":"https://api.github.com/users/freignat91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freignat91/subscriptions","organizations_url":"https://api.github.com/users/freignat91/orgs","repos_url":"https://api.github.com/users/freignat91/repos","events_url":"https://api.github.com/users/freignat91/events{/privacy}","received_events_url":"https://api.github.com/users/freignat91/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/appcelerator/amp/pulls/528/commits","review_comments_url":"https://api.github.com/repos/appcelerator/amp/pulls/528/comments","review_comment_url":"https://api.github.com/repos/appcelerator/amp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/amp/issues/528/comments","statuses_url":"https://api.github.com/repos/appcelerator/amp/statuses/f2b2fb86a17a538b6ed8553f7dea24f25c4d73c0","head":{"label":"appcelerator:bootstrap","ref":"bootstrap","sha":"f2b2fb86a17a538b6ed8553f7dea24f25c4d73c0","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":61302197,"name":"amp","full_name":"appcelerator/amp","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/amp","description":"AMP - the open source Container-as-a-Service & microservice platform for Docker","fork":false,"url":"https://api.github.com/repos/appcelerator/amp","forks_url":"https://api.github.com/repos/appcelerator/amp/forks","keys_url":"https://api.github.com/repos/appcelerator/amp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/amp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/amp/teams","hooks_url":"https://api.github.com/repos/appcelerator/amp/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/amp/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/amp/events","assignees_url":"https://api.github.com/repos/appcelerator/amp/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/amp/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/amp/tags","blobs_url":"https://api.github.com/repos/appcelerator/amp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/amp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/amp/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/amp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/amp/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/amp/languages","stargazers_url":"https://api.github.com/repos/appcelerator/amp/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/amp/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/amp/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/amp/subscription","commits_url":"https://api.github.com/repos/appcelerator/amp/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/amp/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/amp/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/amp/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/amp/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/amp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/amp/merges","archive_url":"https://api.github.com/repos/appcelerator/amp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/amp/downloads","issues_url":"https://api.github.com/repos/appcelerator/amp/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/amp/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/amp/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/amp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/amp/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/amp/releases{/id}","deployments_url":"https://api.github.com/repos/appcelerator/amp/deployments","created_at":"2016-06-16T14:49:30Z","updated_at":"2016-11-22T12:25:47Z","pushed_at":"2016-12-08T14:14:04Z","git_url":"git://github.com/appcelerator/amp.git","ssh_url":"git@github.com:appcelerator/amp.git","clone_url":"https://github.com/appcelerator/amp.git","svn_url":"https://github.com/appcelerator/amp","homepage":"","size":106491,"stargazers_count":14,"watchers_count":14,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":39,"forks":8,"open_issues":39,"watchers":14,"default_branch":"master"}},"base":{"label":"appcelerator:infra-swarm-client-server","ref":"infra-swarm-client-server","sha":"0c2503c0fcdd5c3027daf2358a382bc76703a069","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":61302197,"name":"amp","full_name":"appcelerator/amp","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/amp","description":"AMP - the open source Container-as-a-Service & microservice platform for Docker","fork":false,"url":"https://api.github.com/repos/appcelerator/amp","forks_url":"https://api.github.com/repos/appcelerator/amp/forks","keys_url":"https://api.github.com/repos/appcelerator/amp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/amp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/amp/teams","hooks_url":"https://api.github.com/repos/appcelerator/amp/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/amp/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/amp/events","assignees_url":"https://api.github.com/repos/appcelerator/amp/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/amp/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/amp/tags","blobs_url":"https://api.github.com/repos/appcelerator/amp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/amp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/amp/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/amp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/amp/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/amp/languages","stargazers_url":"https://api.github.com/repos/appcelerator/amp/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/amp/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/amp/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/amp/subscription","commits_url":"https://api.github.com/repos/appcelerator/amp/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/amp/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/amp/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/amp/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/amp/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/amp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/amp/merges","archive_url":"https://api.github.com/repos/appcelerator/amp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/amp/downloads","issues_url":"https://api.github.com/repos/appcelerator/amp/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/amp/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/amp/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/amp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/amp/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/amp/releases{/id}","deployments_url":"https://api.github.com/repos/appcelerator/amp/deployments","created_at":"2016-06-16T14:49:30Z","updated_at":"2016-11-22T12:25:47Z","pushed_at":"2016-12-08T14:14:04Z","git_url":"git://github.com/appcelerator/amp.git","ssh_url":"git@github.com:appcelerator/amp.git","clone_url":"https://github.com/appcelerator/amp.git","svn_url":"https://github.com/appcelerator/amp","homepage":"","size":106491,"stargazers_count":14,"watchers_count":14,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":39,"forks":8,"open_issues":39,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/528"},"html":{"href":"https://github.com/appcelerator/amp/pull/528"},"issue":{"href":"https://api.github.com/repos/appcelerator/amp/issues/528"},"comments":{"href":"https://api.github.com/repos/appcelerator/amp/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/amp/statuses/f2b2fb86a17a538b6ed8553f7dea24f25c4d73c0"}}}}
{"actor":{"display_login":"ndegory"}}