Re:Introducing Jib — Build Java Docker images better
by humbleMouse on Tuesday July 10, 2018 @11:17AM
(#17498822)
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.
[ Parent
| on HN ]
Re:Introducing Jib — Build Java Docker images better
by zokier on Tuesday July 10, 2018 @02:01PM
(#17500602)
I 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.
Re:Introducing Jib — Build Java Docker images better
by humbleMouse on Thursday July 12, 2018 @11:45PM
(#17520389)
I 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.