{"action":"closed","number":785,"pull_request":{"url":"https://api.github.com/repos/appcelerator/amp/pulls/785","id":111382170,"html_url":"https://github.com/appcelerator/amp/pull/785","diff_url":"https://github.com/appcelerator/amp/pull/785.diff","patch_url":"https://github.com/appcelerator/amp/pull/785.patch","issue_url":"https://api.github.com/repos/appcelerator/amp/issues/785","number":785,"state":"closed","locked":false,"title":"Local Swarm cluster deployment with Infrakit","user":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars3.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":"Swarm cluster deployment for AMP based on InfraKit.\r\n\r\n## Bootstrap\r\n\r\nThe AMP CLI will bootstrap a Swarm cluster composed of DockerInDocker nodes.\r\nThis PR is limited right now to:\r\n- amp start, creates a 5 nodes cluster (m1, m2, m3 and 2 workers with random names), with an infrakit container managing it (self healing) helped by a docker instance plugin. An extra container is created to map a list of ports from the host to the swarm. It creates also a registry service for making our images available to the Swarm,\r\n- amp stop, destroys the cluster and the infrakit containers\r\n\r\nPart of the infrakit deployment is the creation of an overlay network (ampnet), that is needed for the deployment of the amplifier stack.\r\n\r\n## Verification\r\n\r\nAdd the appropriate `bin` subdirectory to your path. For example:\r\n\r\n    $ export PATH=$PWD/bin/darwin/amd64:$PATH\r\n\r\nBuild server and CLI images:\r\n\r\n    $ ampmake build\r\n\r\nCreate a local swarm-enabled cluster (`amp start`):\r\n\r\n    $ amp start\r\n\r\nStart amplifier:\r\n\r\nTo start amplifier, you will need to push the `amplifier` image to the amp swarm registry. To do this, you need to tag it first, then push it:\r\n\r\n    $ docker tag appcelerator/amplifier:local localhost:5000/appcelerator/amplifier:local\r\n    $ docker push localhost:5000/appcelerator/amplifier:local\r\n\r\nThen deploy the amplifier stack:\r\n\r\n    $ docker run -it --rm --network=hostnet -v $PWD/stacks:/stacks docker --host=m1 stack deploy -c /stacks/amplifier.stack.yml amplifier\r\n\r\nVerify services have started (will take some time as images are pulled):\r\n\r\n    $ alias mgr='docker run -it --rm --network=hostnet docker --host=m1'\r\n    $ mgr service ls\r\n\r\nStart pinger\r\n\r\n    $ mgr service create -p=3000:3000 --name=pinger appcelerator/pinger\r\n\r\nScale pinger\r\n\r\n    $ mgr service scale pinger=2\r\n\r\nStop pinger\r\n\r\n    $ mgr service rm pinger","created_at":"2017-03-17T23:14:27Z","updated_at":"2017-03-22T20:12:12Z","closed_at":"2017-03-22T20:12:12Z","merged_at":"2017-03-22T20:12:12Z","merge_commit_sha":"7e073c5ce0785b256ec37c041f897d45b980710e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/appcelerator/amp/pulls/785/commits","review_comments_url":"https://api.github.com/repos/appcelerator/amp/pulls/785/comments","review_comment_url":"https://api.github.com/repos/appcelerator/amp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/amp/issues/785/comments","statuses_url":"https://api.github.com/repos/appcelerator/amp/statuses/902c89286d4602a3102a6e1a4816cf482a8b0042","head":{"label":"appcelerator:infrakit","ref":"infrakit","sha":"902c89286d4602a3102a6e1a4816cf482a8b0042","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars0.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://avatars0.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 - an open source unified CaaS / FaaS 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":"2017-03-20T22:21:55Z","pushed_at":"2017-03-22T20:12:12Z","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":128996,"stargazers_count":39,"watchers_count":39,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":71,"forks":15,"open_issues":71,"watchers":39,"default_branch":"master"}},"base":{"label":"appcelerator:master","ref":"master","sha":"399981919caec4b8f755df5b68cb2552b6445766","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars0.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://avatars0.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 - an open source unified CaaS / FaaS 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":"2017-03-20T22:21:55Z","pushed_at":"2017-03-22T20:12:12Z","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":128996,"stargazers_count":39,"watchers_count":39,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":71,"forks":15,"open_issues":71,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/785"},"html":{"href":"https://github.com/appcelerator/amp/pull/785"},"issue":{"href":"https://api.github.com/repos/appcelerator/amp/issues/785"},"comments":{"href":"https://api.github.com/repos/appcelerator/amp/issues/785/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/785/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/amp/pulls/785/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/amp/statuses/902c89286d4602a3102a6e1a4816cf482a8b0042"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"subfuzion","id":159738,"avatar_url":"https://avatars3.githubusercontent.com/u/159738?v=3","gravatar_id":"","url":"https://api.github.com/users/subfuzion","html_url":"https://github.com/subfuzion","followers_url":"https://api.github.com/users/subfuzion/followers","following_url":"https://api.github.com/users/subfuzion/following{/other_user}","gists_url":"https://api.github.com/users/subfuzion/gists{/gist_id}","starred_url":"https://api.github.com/users/subfuzion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subfuzion/subscriptions","organizations_url":"https://api.github.com/users/subfuzion/orgs","repos_url":"https://api.github.com/users/subfuzion/repos","events_url":"https://api.github.com/users/subfuzion/events{/privacy}","received_events_url":"https://api.github.com/users/subfuzion/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":1900,"deletions":142,"changed_files":21}}
{"actor":{"display_login":"subfuzion"}}