4 ms·
Everything your jar contains can be stored in a git-hub repo with the project. Then you build a fat jar and put it in the image.
by humbleMouse 8y ago
Everything your jar contains can be stored in a git-hub repo with the project. Then you build a fat jar and put it in the image.
- zokier 8y agoI would advice against using fat jars with docker. They do not layer nicely, so your layer sizes become much bigger than necessary, slowing everything down. If you have multiple applications then with fat jars you lose the ability to share the common bits in the applications, which could also have impact on maintainability.
- humbleMouse 8y agoI would argue that fat jars make everything simple and portable. Especially if you do performance testing frequently on hardware that isn't running docker. You can compare performance baremetal vs. VM's this way. Furthermore, as log as you use gradle/maven with artifactory then maintainability of fat jar artifacts is pretty simple.