{"action":"opened","number":3534,"pull_request":{"url":"https://api.github.com/repos/mesosphere/marathon/pulls/3534","id":63569405,"html_url":"https://github.com/mesosphere/marathon/pull/3534","diff_url":"https://github.com/mesosphere/marathon/pull/3534.diff","patch_url":"https://github.com/mesosphere/marathon/pull/3534.patch","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/3534","number":3534,"state":"open","locked":false,"title":"Allow  for tcp+udp ports in portMappings","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":"- allow `both` as protocol for Docker portMappings\r\n- only reserve one port resource from an offer, but unfold the portMapping into `tcp` and `udp` in portMapping.toMesos, resulting in two Docker `-p` port mappings.\r\n\r\nExample `marathon.json`:\r\n\r\n```json\r\n{\r\n\t\"id\": \"/kdc\",\r\n\t\"instances\": 1,\r\n\t\"cpus\": 1,\r\n\t\"mem\": 128,\r\n\t\"env\": {\r\n\t\t\"PRINCIPAL_hdfs\": \"hdfs@LOCAL:secret\",\r\n\t\t\"PRINCIPAL_tester\": \"tester@LOCAL:secret\",\r\n\t\t\"KEYTAB_hdfs\": \"hdfs@LOCAL:hdfs.keytab\",\r\n\t\t\"KEYTAB_tester\": \"tester@LOCAL:tester.keytab\"\r\n\t},\r\n\t\"container\": {\r\n\t\t\"type\": \"DOCKER\",\r\n\t\t\"docker\": {\r\n\t\t\t\"image\": \"sttts/test-kdc:latest\",\r\n\t\t\t\"network\": \"BRIDGE\",\r\n\t\t\t\"forcePullImage\": true,\r\n\t\t\t\"portMappings\": [\r\n\t\t\t\t{ \"containerPort\": 88, \"hostPort\": 0, \"protocol\": \"both\" }\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nleading to:\r\n\r\n<img width=\"1193\" alt=\"bildschirmfoto 2016-03-21 um 15 10 28\" src=\"https://cloud.githubusercontent.com/assets/730123/13921235/3223e8dc-ef77-11e5-9264-426c8703bf50.png\">\r\n","created_at":"2016-03-21T14:12:12Z","updated_at":"2016-03-21T14:12:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/marathon/pulls/3534/commits","review_comments_url":"https://api.github.com/repos/mesosphere/marathon/pulls/3534/comments","review_comment_url":"https://api.github.com/repos/mesosphere/marathon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/3534/comments","statuses_url":"https://api.github.com/repos/mesosphere/marathon/statuses/5f0566d105c577f1e08e332ef0d9e5241bc83bcf","head":{"label":"sttts:sttts-ports-both-protocols","ref":"sttts-ports-both-protocols","sha":"5f0566d105c577f1e08e332ef0d9e5241bc83bcf","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},"repo":{"id":28426480,"name":"marathon","full_name":"sttts/marathon","owner":{"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},"private":false,"html_url":"https://github.com/sttts/marathon","description":"Deploy and manage containers (including Docker) on top of Apache Mesos at scale.","fork":true,"url":"https://api.github.com/repos/sttts/marathon","forks_url":"https://api.github.com/repos/sttts/marathon/forks","keys_url":"https://api.github.com/repos/sttts/marathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sttts/marathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sttts/marathon/teams","hooks_url":"https://api.github.com/repos/sttts/marathon/hooks","issue_events_url":"https://api.github.com/repos/sttts/marathon/issues/events{/number}","events_url":"https://api.github.com/repos/sttts/marathon/events","assignees_url":"https://api.github.com/repos/sttts/marathon/assignees{/user}","branches_url":"https://api.github.com/repos/sttts/marathon/branches{/branch}","tags_url":"https://api.github.com/repos/sttts/marathon/tags","blobs_url":"https://api.github.com/repos/sttts/marathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sttts/marathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sttts/marathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/sttts/marathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sttts/marathon/statuses/{sha}","languages_url":"https://api.github.com/repos/sttts/marathon/languages","stargazers_url":"https://api.github.com/repos/sttts/marathon/stargazers","contributors_url":"https://api.github.com/repos/sttts/marathon/contributors","subscribers_url":"https://api.github.com/repos/sttts/marathon/subscribers","subscription_url":"https://api.github.com/repos/sttts/marathon/subscription","commits_url":"https://api.github.com/repos/sttts/marathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/sttts/marathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/sttts/marathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/sttts/marathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/sttts/marathon/contents/{+path}","compare_url":"https://api.github.com/repos/sttts/marathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sttts/marathon/merges","archive_url":"https://api.github.com/repos/sttts/marathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sttts/marathon/downloads","issues_url":"https://api.github.com/repos/sttts/marathon/issues{/number}","pulls_url":"https://api.github.com/repos/sttts/marathon/pulls{/number}","milestones_url":"https://api.github.com/repos/sttts/marathon/milestones{/number}","notifications_url":"https://api.github.com/repos/sttts/marathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sttts/marathon/labels{/name}","releases_url":"https://api.github.com/repos/sttts/marathon/releases{/id}","deployments_url":"https://api.github.com/repos/sttts/marathon/deployments","created_at":"2014-12-24T00:31:50Z","updated_at":"2014-12-24T00:31:51Z","pushed_at":"2016-03-21T14:08:29Z","git_url":"git://github.com/sttts/marathon.git","ssh_url":"git@github.com:sttts/marathon.git","clone_url":"https://github.com/sttts/marathon.git","svn_url":"https://github.com/sttts/marathon","homepage":"https://mesosphere.github.io/marathon/","size":16409,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mesosphere:master","ref":"master","sha":"b0aac8050d8f9ac5e41b75908c993166fc39a3e0","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":10941409,"name":"marathon","full_name":"mesosphere/marathon","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/marathon","description":"Deploy and manage containers (including Docker) on top of Apache Mesos at scale.","fork":false,"url":"https://api.github.com/repos/mesosphere/marathon","forks_url":"https://api.github.com/repos/mesosphere/marathon/forks","keys_url":"https://api.github.com/repos/mesosphere/marathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/marathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/marathon/teams","hooks_url":"https://api.github.com/repos/mesosphere/marathon/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/marathon/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/marathon/events","assignees_url":"https://api.github.com/repos/mesosphere/marathon/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/marathon/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/marathon/tags","blobs_url":"https://api.github.com/repos/mesosphere/marathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/marathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/marathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/marathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/marathon/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/marathon/languages","stargazers_url":"https://api.github.com/repos/mesosphere/marathon/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/marathon/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/marathon/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/marathon/subscription","commits_url":"https://api.github.com/repos/mesosphere/marathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/marathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/marathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/marathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/marathon/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/marathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/marathon/merges","archive_url":"https://api.github.com/repos/mesosphere/marathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/marathon/downloads","issues_url":"https://api.github.com/repos/mesosphere/marathon/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/marathon/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/marathon/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/marathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/marathon/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/marathon/releases{/id}","deployments_url":"https://api.github.com/repos/mesosphere/marathon/deployments","created_at":"2013-06-25T14:56:34Z","updated_at":"2016-03-20T20:50:54Z","pushed_at":"2016-03-21T14:10:21Z","git_url":"git://github.com/mesosphere/marathon.git","ssh_url":"git@github.com:mesosphere/marathon.git","clone_url":"https://github.com/mesosphere/marathon.git","svn_url":"https://github.com/mesosphere/marathon","homepage":"https://mesosphere.github.io/marathon/","size":21367,"stargazers_count":2295,"watchers_count":2295,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":496,"mirror_url":null,"open_issues_count":534,"forks":496,"open_issues":534,"watchers":2295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/marathon/pulls/3534"},"html":{"href":"https://github.com/mesosphere/marathon/pull/3534"},"issue":{"href":"https://api.github.com/repos/mesosphere/marathon/issues/3534"},"comments":{"href":"https://api.github.com/repos/mesosphere/marathon/issues/3534/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/marathon/pulls/3534/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/marathon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/marathon/pulls/3534/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/marathon/statuses/5f0566d105c577f1e08e332ef0d9e5241bc83bcf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":11,"changed_files":3}}