vertx-gradle-plugin icon indicating copy to clipboard operation
vertx-gradle-plugin copied to clipboard

Propose an opinionated Docker packaging

Open danielpetisme opened this issue 7 years ago • 2 comments

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?

danielpetisme avatar Jul 29 '18 13:07 danielpetisme

I'm thinking that:

  1. yes, Docker is one packaging option and we could have it as an option rather than as a default, and
  2. fatjars aren't always the best packaging to build Docker images.

Have you looked at https://github.com/GoogleContainerTools/jib?

jponge avatar Jul 31 '18 12:07 jponge

Thanks Daniel, I need to check this!

jponge avatar Aug 02 '18 16:08 jponge