GoogleContainerTools / GoogleContainerTools/jib
Add support for jlink and creating slim JRE
- Dominant language
- Java
- Stars
- 14.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
We found that right now we are not able to use Adoptiom/Temurin docker base image with the new version of Java 17 because they provide only full JDK docker images which is pretty huge. They encourage users to use jlink. I thought about it how to achieve it with jib and I do not see any easy way how to do it. I found that [someone do it only with jib-core](https://rmannibucau.metawerx.net/jlink-your-java-image-before-putting-it-into-docker-part-3-of-3.html) but I feel this is not much usable. Second option how to do it is create runtime with `maven-jlink-plugin` and then put it into the base docker image as extraDirectories. I think that JIB should contains an easy solution how to easily do it. For example as an extension (you do similar thing for Quarkus).
Contributor guide
Assessment
This issue has not been assessed yet.