-
Notifications
You must be signed in to change notification settings - Fork 446
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
Does docker:publishLocal support multiple modules? #941
Comments
Sorry for replying this late 😢 . I must have missed this issue. When you package your projects in sub-modules ( what your example looks like ) then you already get three docker images. E.g. if you have a lazy val root = project(".").aggregate(service1, service2, service3)
lazy val service1= project("service1")
.enablePlugins(JavaAppPackaging)
.settings(name := "service1")
lazy val service2= project("service2")
.enablePlugins(JavaAppPackaging)
.settings(name := "service2")
lazy val service3= project("service3")
.enablePlugins(JavaAppPackaging)
.settings(name := "service3") If you call |
@muuki88 is there a way to build an image for one specific sub-project and not all of them at once? |
Sure. Either you configure the native packager plugins only on the sub modules you want or you can all the publish/package command scoped to a submodule |
@muuki88 it turns out that How do you suggest calling the publish/package command scoped to a submodule |
What sbt command is triggering the docker related tasks? Maybe you can try |
I tried |
In a project with multiple modules, e.g.
...
/build.sbt
/somelibrary/main/src
/service1/main/src
/service2/main/src
/service3/main/src
...
is it possible to package each service independently, e.g. in this case to 3 different docker images? If so what is the command (from command prompt)?
I'd typically run
sbt docker:publishLocal
but I think the command is different in this case?Thanks
The text was updated successfully, but these errors were encountered: