{"action":"created","comment":{"url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/comments/30537929","id":30537929,"diff_hunk":"@@ -0,0 +1,98 @@\n+ambassador:\n+  image: cpuguy83/docker-grand-ambassador\n+  volumes:\n+  - /var/run/docker.sock:/var/run/docker.sock\n+  command: \"-name docker_etcd_1 -name docker_mesos_1 -name docker_apiserver_1 -name docker_controller_1 -name docker_scheduler_1\"\n+etcd:\n+  hostname: etcd\n+  image: coreos/etcd\n+  ports: [ \"4001:4001\", \"7001:7001\" ]\n+  command: -addr=etcd:4001\n+#zookeeper:\n+#  image: jplock/zookeeper:3.4.5\n+#  ports: [ \"2181:2181\" ]\n+mesos:\n+  hostname: mesos\n+  image: mesosphere/mesos:0.22.0-1.0.ubuntu1404\n+  entrypoint: mesos-local\n+  ports: [ \"5050:5050\" ]\n+  environment:\n+  - MESOS_HOSTNAME=mesos\n+  - MESOS_PORT=5050\n+  - MESOS_LOG_DIR=/var/log/mesos\n+  - MESOS_QUORUM=1\n+  - MESOS_REGISTRY=in_memory\n+  - MESOS_WORK_DIR=/var/lib/mesos\n+#  - MESOS_ZK=zk://zookeeper:2181/mesos\n+  links:\n+  - etcd\n+  - \"ambassador:apiserver\"\n+  volumes:\n+  - /var/run/docker.sock:/var/run/docker.sock\n+#  - zookeeper\n+apiserver:\n+  hostname: apiserver\n+  image: mesosphere/kubernetes-mesos:latest\n+  entrypoint:\n+  - /bin/bash\n+  - \"-c\"\n+  - >\n+    echo \"Hostname: $(hostname -f) ($(hostname -f | xargs resolveip))\" &&\n+    echo \"mesos-master = mesos:5050\" >> /opt/mesos-cloud.conf &&\n+    await-service $(resolveip etcd) 4001 &&\n+    await-service $(resolveip mesos) 5050 &&\n+    km apiserver\n+    --address=$(resolveip apiserver)\n+    --external_hostname=apiserver\n+    --etcd_servers=http://etcd:4001\n+    --portal_net=10.10.10.0/24\n+    --port=8888\n+    --cloud_provider=mesos\n+    --cloud_config=/opt/mesos-cloud.conf\n+    --v=2\n+  ports: [ \"8888:8888\" ]\n+  links:\n+  - etcd\n+  - mesos\n+controller:\n+  hostname: controller\n+  image: mesosphere/kubernetes-mesos:latest\n+  entrypoint:\n+  - /bin/bash\n+  - \"-c\"\n+  - >\n+    echo \"Hostname: $(hostname -f) ($(hostname -f | xargs resolveip))\" &&\n+    echo \"mesos-master = mesos:5050\" >> /opt/mesos-cloud.conf &&\n+    await-service $(resolveip mesos) 5050 20 &&\n+    await-service $(resolveip apiserver) 8888 &&\n+    km controller-manager\n+    --master=http://apiserver:8888\n+    --cloud_config=/opt/mesos-cloud.conf\n+    --v=2\n+  links:\n+  - mesos\n+  - apiserver\n+scheduler:\n+  hostname: scheduler\n+  image: mesosphere/kubernetes-mesos:latest\n+  entrypoint:\n+  - /bin/bash","path":"docker/docker-compose.yml","position":79,"original_position":79,"commit_id":"4252a75696f9b9e2accce3be6afce309553ab899","original_commit_id":"4252a75696f9b9e2accce3be6afce309553ab899","user":{"login":"sttts","id":730123,"avatar_url":"https://avatars.githubusercontent.com/u/730123?v=3","gravatar_id":"","url":"https://api.github.com/users/sttts","html_url":"https://github.com/sttts","followers_url":"https://api.github.com/users/sttts/followers","following_url":"https://api.github.com/users/sttts/following{/other_user}","gists_url":"https://api.github.com/users/sttts/gists{/gist_id}","starred_url":"https://api.github.com/users/sttts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttts/subscriptions","organizations_url":"https://api.github.com/users/sttts/orgs","repos_url":"https://api.github.com/users/sttts/repos","events_url":"https://api.github.com/users/sttts/events{/privacy}","received_events_url":"https://api.github.com/users/sttts/received_events","type":"User","site_admin":false},"body":"The entrypoint in string format is always run inside a shell by Docker. I guess there is no need for another bash line here. Completely sure yet, especially about the way docker-compose handles this.","created_at":"2015-05-18T19:08:19Z","updated_at":"2015-05-18T19:08:19Z","html_url":"https://github.com/mesosphere/kubernetes-mesos/pull/282#discussion_r30537929","pull_request_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282","_links":{"self":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/comments/30537929"},"html":{"href":"https://github.com/mesosphere/kubernetes-mesos/pull/282#discussion_r30537929"},"pull_request":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282"}}},"pull_request":{"url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282","id":35654853,"html_url":"https://github.com/mesosphere/kubernetes-mesos/pull/282","diff_url":"https://github.com/mesosphere/kubernetes-mesos/pull/282.diff","patch_url":"https://github.com/mesosphere/kubernetes-mesos/pull/282.patch","issue_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/282","number":282,"state":"open","locked":false,"title":"Add docker & docker-compose scripts","user":{"login":"karlkfi","id":3980984,"avatar_url":"https://avatars.githubusercontent.com/u/3980984?v=3","gravatar_id":"","url":"https://api.github.com/users/karlkfi","html_url":"https://github.com/karlkfi","followers_url":"https://api.github.com/users/karlkfi/followers","following_url":"https://api.github.com/users/karlkfi/following{/other_user}","gists_url":"https://api.github.com/users/karlkfi/gists{/gist_id}","starred_url":"https://api.github.com/users/karlkfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlkfi/subscriptions","organizations_url":"https://api.github.com/users/karlkfi/orgs","repos_url":"https://api.github.com/users/karlkfi/repos","events_url":"https://api.github.com/users/karlkfi/events{/privacy}","received_events_url":"https://api.github.com/users/karlkfi/received_events","type":"User","site_admin":false},"body":"This PR includes several pieces:\r\n- A dockerfile for creating mesosphere/kubernetes-mesos-complete with all dependencies\r\n- A dockerfile for creating mesosphere/kubernetes-mesos without dependencies\r\n- A docker-compose file to run k8sm and each of its dependencies in separate containers\r\n- Several scripts:\r\n  - km-complete for running k8sm with dependencies\r\n  - km-local for running k8sm without dependencies\r\n  - helper scripts: await-service, cmd-exists, publicip, resolveip\r\n- A readme for using the above\r\n\r\nI figure these are useful on their own without the integration tests that prompted their creation. So I'm making the integration tests a different PR.","created_at":"2015-05-18T17:22:13Z","updated_at":"2015-05-18T19:08:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b488880b21c687581c885d426cb32f94591df6ab","assignee":{"login":"jdef","id":2348332,"avatar_url":"https://avatars.githubusercontent.com/u/2348332?v=3","gravatar_id":"","url":"https://api.github.com/users/jdef","html_url":"https://github.com/jdef","followers_url":"https://api.github.com/users/jdef/followers","following_url":"https://api.github.com/users/jdef/following{/other_user}","gists_url":"https://api.github.com/users/jdef/gists{/gist_id}","starred_url":"https://api.github.com/users/jdef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdef/subscriptions","organizations_url":"https://api.github.com/users/jdef/orgs","repos_url":"https://api.github.com/users/jdef/repos","events_url":"https://api.github.com/users/jdef/events{/privacy}","received_events_url":"https://api.github.com/users/jdef/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282/commits","review_comments_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282/comments","review_comment_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/282/comments","statuses_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/statuses/4252a75696f9b9e2accce3be6afce309553ab899","head":{"label":"mesosphere:karl-docker-test","ref":"karl-docker-test","sha":"4252a75696f9b9e2accce3be6afce309553ab899","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":21475984,"name":"kubernetes-mesos","full_name":"mesosphere/kubernetes-mesos","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/kubernetes-mesos","description":"A Kubernetes Framework for Apache Mesos","fork":false,"url":"https://api.github.com/repos/mesosphere/kubernetes-mesos","forks_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/forks","keys_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/teams","hooks_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/events","assignees_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/tags","blobs_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/languages","stargazers_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/subscription","commits_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/merges","archive_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/downloads","issues_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/releases{/id}","created_at":"2014-07-03T20:28:06Z","updated_at":"2015-05-18T11:28:44Z","pushed_at":"2015-05-18T17:22:13Z","git_url":"git://github.com/mesosphere/kubernetes-mesos.git","ssh_url":"git@github.com:mesosphere/kubernetes-mesos.git","clone_url":"https://github.com/mesosphere/kubernetes-mesos.git","svn_url":"https://github.com/mesosphere/kubernetes-mesos","homepage":null,"size":20679,"stargazers_count":394,"watchers_count":394,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":73,"forks":54,"open_issues":73,"watchers":394,"default_branch":"master"}},"base":{"label":"mesosphere:master","ref":"master","sha":"2528510f10270d860033cc779a07c75c10c0b043","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":21475984,"name":"kubernetes-mesos","full_name":"mesosphere/kubernetes-mesos","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/kubernetes-mesos","description":"A Kubernetes Framework for Apache Mesos","fork":false,"url":"https://api.github.com/repos/mesosphere/kubernetes-mesos","forks_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/forks","keys_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/teams","hooks_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/events","assignees_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/tags","blobs_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/languages","stargazers_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/subscription","commits_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/merges","archive_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/downloads","issues_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/kubernetes-mesos/releases{/id}","created_at":"2014-07-03T20:28:06Z","updated_at":"2015-05-18T11:28:44Z","pushed_at":"2015-05-18T17:22:13Z","git_url":"git://github.com/mesosphere/kubernetes-mesos.git","ssh_url":"git@github.com:mesosphere/kubernetes-mesos.git","clone_url":"https://github.com/mesosphere/kubernetes-mesos.git","svn_url":"https://github.com/mesosphere/kubernetes-mesos","homepage":null,"size":20679,"stargazers_count":394,"watchers_count":394,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":73,"forks":54,"open_issues":73,"watchers":394,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282"},"html":{"href":"https://github.com/mesosphere/kubernetes-mesos/pull/282"},"issue":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/282"},"comments":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/issues/282/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/pulls/282/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/kubernetes-mesos/statuses/4252a75696f9b9e2accce3be6afce309553ab899"}}}}