vertx-gradle-plugin
vertx-gradle-plugin copied to clipboard
Propose an opinionated Docker packaging
Just as a Jar or a Zip can be seen as a packaging/distribution artefact. We could use the existing docker gradle plugin.
Vertx-gradle-plugin could build programatically a default Dockerfile to run the generated fat jar (like a classic Java app, a Dockerfile option would let the developer define a custom file.
In a first release,I don't think the plugin has to manage the image publication to a repository.
Thoughts?
I'm thinking that:
- yes, Docker is one packaging option and we could have it as an option rather than as a default, and
- fatjars aren't always the best packaging to build Docker images.
Have you looked at https://github.com/GoogleContainerTools/jib?
Thanks Daniel, I need to check this!