January 2018
Intermediate to advanced
348 pages
8h 17m
English
A Dockerfile can be used to describe the executable steps required to build an image, and this can be done for both Far JAR or Skinny WAR. When we built our custom image for the ims-micro-users project, we actually took our Skinny WAR and bundled it with the Payara Micro server. This resulted in a Docker image that we were able to run locally.
Similarly, a Fat JAR or Uber JAR is just an executable and can be used to build a Docker image; it has just enough runtime for it to run.
Since the Fat JAR already has the server bundled in it, all that's left as a requirement is to provide an environment, which has an appropriate Java runtime.
Let's build an Uber JAR for ims-micro-tasks (this can be any Fat JAR project ...
Read now
Unlock full access