John
05/27/2022, 3:51 PMgrossws
05/27/2022, 4:15 PMJohn
05/27/2022, 4:17 PMJohn
05/27/2022, 4:20 PMgrossws
05/27/2022, 4:22 PMJohn
05/27/2022, 4:23 PMgrossws
05/27/2022, 4:28 PMJendrik Johannes
05/30/2022, 8:38 AMVampire
05/30/2022, 1:54 PMI am moving to a jib-based build using the beryx runtime and jlink plugins
Just a personal opinion from doing the same recently: don't It is very inflexible and the developers too. I had to jump several hoops to get it running like expected, including using the filter plugin to exclude all files they include and define my own layout to make it work properly. And the final strike when I switched to a proper Docker build was, when I tried to use the Java 8 image as base because it is smaller than the Java 17 image and I have my own runtime image and Jib didn't allow it as a measure to protect people shooting their own feet, but without an option to suppress or downgrade this check and without them even considering adding it. Now the build runs perfect and the image is approximately half the size with
debian:stable-slim
as base. (I couldn't use it as base image for Jib, as I need font support which doesn't work with it but needs an additional Debian package)Vampire
05/30/2022, 1:55 PMJohn
05/30/2022, 2:37 PMgrossws
05/30/2022, 3:44 PMVampire
05/30/2022, 3:48 PMDockerfile
combined with Ben Muschkos Docker plugin to build and then save the Docker image to a tar.gz archive.John
05/30/2022, 3:52 PMVampire
05/30/2022, 3:54 PMInteresting. So far I have not had any issues. That filter plugin thing, was that because of the default extra directories they set?
Actually more because of the whole concept. I don't want
java
as entry point directly. I want the project runnable according to application
plugin without Docker too and for example give paths to the application via the start script and so on. I could of course also make Docker case specific logic, but it wanted it consistent, also because I develop and test with the application version and only have it in the Docker container for easy distribution and management, so I wanted it as similar as possible. So I basically ignored all files added by Jib, added the files "again" via extra directories and created layers as I wanted.Vampire
05/30/2022, 3:55 PMVampire
05/30/2022, 3:56 PMOh I didn't know the bmuschko plugin could do tar.gz I thought it only built against a docker daemon
Maybe you got me wrong. I have two tasks, one that builds the image on the daemon ANDA second that saves it to tgz. Both tasks from his plugin.
John
05/30/2022, 3:58 PMJohn
05/30/2022, 3:58 PMVampire
05/30/2022, 4:08 PMJohn
05/30/2022, 4:47 PMVampire
05/30/2022, 4:50 PMJohn
05/30/2022, 4:51 PMJohn
05/30/2022, 4:52 PMVampire
05/30/2022, 4:52 PMJohn
05/30/2022, 5:00 PMVampire
05/30/2022, 5:05 PMJohn
05/30/2022, 5:50 PMgrossws
05/30/2022, 6:34 PM