Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to expose UDP ports #881

Merged
merged 1 commit into from Sep 22, 2016
Merged

Conversation

NeQuissimus
Copy link
Contributor

Add dockerExposedUdpPorts similar to the existing dockerExposedPorts.

Note that this depends on #880 for the tests to pass.

Fixed #843

@@ -207,8 +208,8 @@ object DockerPlugin extends AutoPlugin {
* @param exposedPorts
* @return if ports are exposed the EXPOSE command
*/
private final def makeExposePorts(exposedPorts: Seq[Int]): Option[CmdLike] = {
if (exposedPorts.isEmpty) None else Some(Cmd("EXPOSE", exposedPorts mkString " "))
private final def makeExposePorts(exposedPorts: Seq[Int], exposedUdpPorts: Seq[Int]): Option[CmdLike] = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we care? I think most of the methods in this class could have a more limited scope.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. I always forget to configure this :/

@muuki88 muuki88 added the docker label Sep 19, 2016
Copy link
Contributor

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. +1 for adding tests and docs

@muuki88 muuki88 merged commit 29a5ce1 into sbt:master Sep 22, 2016
@NeQuissimus NeQuissimus deleted the docker/udp branch September 22, 2016 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants