{"action":"created","comment":{"url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/comments/40979824","id":40979824,"diff_hunk":"@@ -11,15 +12,19 @@ consul:\n     - 8500:8500\n     restart: always\n \n+# Run the application on AWS/GCE as follows:\n+# sed -r \"s/consul:<CONSUL_IP>/consul:$(shell cat .aws/consul)/\" ../docker-compose-swarm.yml > /tmp/swarm.yml\n+# COMPOSE=/tmp/swarm.yml PREFIX=cb4 VERSION=4 ../start.bash\n \n # Manually bootstrap the first instance, then...\n # Scale this tier and each additional container/instance will automatically\n # self-configure as a member of the cluster\n couchbase4:\n     image: 0x74696d/triton-couchbase:4.0.0\n+    net: host\n     extra_hosts:\n-    - consul:${CONSUL_IP}\n-    mem_limit: 128g\n+    - \"consul:<CONSUL_IP>\"","path":"docker-compose-swarm.yml","position":25,"original_position":25,"commit_id":"39d809709fe3201d65988de0ec5fd3db54b6b28d","original_commit_id":"39d809709fe3201d65988de0ec5fd3db54b6b28d","user":{"login":"tgross","id":1409219,"avatar_url":"https://avatars.githubusercontent.com/u/1409219?v=3","gravatar_id":"","url":"https://api.github.com/users/tgross","html_url":"https://github.com/tgross","followers_url":"https://api.github.com/users/tgross/followers","following_url":"https://api.github.com/users/tgross/following{/other_user}","gists_url":"https://api.github.com/users/tgross/gists{/gist_id}","starred_url":"https://api.github.com/users/tgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgross/subscriptions","organizations_url":"https://api.github.com/users/tgross/orgs","repos_url":"https://api.github.com/users/tgross/repos","events_url":"https://api.github.com/users/tgross/events{/privacy}","received_events_url":"https://api.github.com/users/tgross/received_events","type":"User","site_admin":false},"body":"It's just to mark this for the line of sed here: https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10/files#diff-edbb3d293f4a3df14cbfde338382c9dcR132\r\n\r\nYou can't pass environment variables from the client's host into docker-compose, so I'm injecting them via sed and then using that temp file as the input to docker-compose.","created_at":"2015-10-01T23:39:42Z","updated_at":"2015-10-01T23:39:42Z","html_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10#discussion_r40979824","pull_request_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/comments/40979824"},"html":{"href":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10#discussion_r40979824"},"pull_request":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10","id":46576080,"html_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10","diff_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10.diff","patch_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10.patch","issue_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/10","number":10,"state":"open","locked":false,"title":"Networking workarounds for AWS/GCE","user":{"login":"tgross","id":1409219,"avatar_url":"https://avatars.githubusercontent.com/u/1409219?v=3","gravatar_id":"","url":"https://api.github.com/users/tgross","html_url":"https://github.com/tgross","followers_url":"https://api.github.com/users/tgross/followers","following_url":"https://api.github.com/users/tgross/following{/other_user}","gists_url":"https://api.github.com/users/tgross/gists{/gist_id}","starred_url":"https://api.github.com/users/tgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgross/subscriptions","organizations_url":"https://api.github.com/users/tgross/orgs","repos_url":"https://api.github.com/users/tgross/repos","events_url":"https://api.github.com/users/tgross/events{/privacy}","received_events_url":"https://api.github.com/users/tgross/received_events","type":"User","site_admin":false},"body":"@misterbisson @max123 this PR includes changes to the makefile I've been using for orchestration to workaround problems I had with the AWS/GCE setup:\r\n\r\n- use the host networking so that the IP the couchbase containers can see (and with which they register to consul) matches the host's IP\r\n- fix the memory size of the nodes to fit within what we can get from AWS & GCE\r\n- inject the consul IP into docker-compose via sed to a temp file rather than by trying (unsuccessfully!) to inject it via environment variables; I misread the docker-compose docs here.\r\n- added a draft (as-yet-untested) digitalocean piece","created_at":"2015-10-01T20:59:28Z","updated_at":"2015-10-01T23:39:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e99ce7d06cd0b0574c5c475286fa0beac13a98c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10/commits","review_comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10/comments","review_comment_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/10/comments","statuses_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/39d809709fe3201d65988de0ec5fd3db54b6b28d","head":{"label":"misterbisson:multiple_provider_tests_working","ref":"multiple_provider_tests_working","sha":"39d809709fe3201d65988de0ec5fd3db54b6b28d","user":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"repo":{"id":32592517,"name":"clustered-couchbase-in-containers","full_name":"misterbisson/clustered-couchbase-in-containers","owner":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misterbisson/clustered-couchbase-in-containers","description":"","fork":false,"url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers","forks_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/forks","keys_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/teams","hooks_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/hooks","issue_events_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/events{/number}","events_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/events","assignees_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/assignees{/user}","branches_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/branches{/branch}","tags_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/tags","blobs_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/refs{/sha}","trees_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/{sha}","languages_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/languages","stargazers_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/stargazers","contributors_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/contributors","subscribers_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/subscribers","subscription_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/subscription","commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/commits{/sha}","git_commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/commits{/sha}","comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/comments{/number}","issue_comment_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/comments{/number}","contents_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/contents/{+path}","compare_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/merges","archive_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/downloads","issues_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues{/number}","pulls_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls{/number}","milestones_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/milestones{/number}","notifications_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/labels{/name}","releases_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/releases{/id}","created_at":"2015-03-20T15:45:13Z","updated_at":"2015-09-25T03:22:11Z","pushed_at":"2015-10-01T20:59:28Z","git_url":"git://github.com/misterbisson/clustered-couchbase-in-containers.git","ssh_url":"git@github.com:misterbisson/clustered-couchbase-in-containers.git","clone_url":"https://github.com/misterbisson/clustered-couchbase-in-containers.git","svn_url":"https://github.com/misterbisson/clustered-couchbase-in-containers","homepage":null,"size":391,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"misterbisson:multiple_provider_tests","ref":"multiple_provider_tests","sha":"f183b112aa5a257c37e7fadaea2756b8d37fdb58","user":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"repo":{"id":32592517,"name":"clustered-couchbase-in-containers","full_name":"misterbisson/clustered-couchbase-in-containers","owner":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misterbisson/clustered-couchbase-in-containers","description":"","fork":false,"url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers","forks_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/forks","keys_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/teams","hooks_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/hooks","issue_events_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/events{/number}","events_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/events","assignees_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/assignees{/user}","branches_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/branches{/branch}","tags_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/tags","blobs_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/refs{/sha}","trees_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/{sha}","languages_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/languages","stargazers_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/stargazers","contributors_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/contributors","subscribers_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/subscribers","subscription_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/subscription","commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/commits{/sha}","git_commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/commits{/sha}","comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/comments{/number}","issue_comment_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/comments{/number}","contents_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/contents/{+path}","compare_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/merges","archive_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/downloads","issues_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues{/number}","pulls_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls{/number}","milestones_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/milestones{/number}","notifications_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/labels{/name}","releases_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/releases{/id}","created_at":"2015-03-20T15:45:13Z","updated_at":"2015-09-25T03:22:11Z","pushed_at":"2015-10-01T20:59:28Z","git_url":"git://github.com/misterbisson/clustered-couchbase-in-containers.git","ssh_url":"git@github.com:misterbisson/clustered-couchbase-in-containers.git","clone_url":"https://github.com/misterbisson/clustered-couchbase-in-containers.git","svn_url":"https://github.com/misterbisson/clustered-couchbase-in-containers","homepage":null,"size":391,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10"},"html":{"href":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/10"},"issue":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/10"},"comments":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/39d809709fe3201d65988de0ec5fd3db54b6b28d"}}}}