-
Switched
nightlyversion to JDK17 (had to bump certain dependencies thustigase-projects-parenthas version1.0.5-SNAPSHOTnow and any project that wants to use JDK17 should use this version; this also required rebuilding tc-agent because JDK17 wasn't present, which posed another issues…). What's more, I justjlinkto create slim version of the Java runtime and create image based on debian bullseye-slim which is only ~187M (compared to 315M from8.2.0this is roughly 40% reduction; though, compressed images on dockerhub says 108M vs 121M so the difference is not all that great).One can use
jdeps -s jars/tigase-server.jarto determine required modules for particularjarfile.In future version, when we remove groovy we would probably slash size of the image further (less dependencies and less required modules from the
JDK).I tried building image based on
alpinebut ran into certain issues and decided it's not worth it.
| Type |
Task
|
| Priority |
Normal
|
| Assignee | |
| Version |
tigase-server-8.3.0
|
For 8.2.0 we should stick with
openjdk:11-jre-slimbut for next release we should use latest LTS version (17 probably) and possibly use jlink to reduce JDK size (maybe with maintaining some JDK tooling)https://hub.docker.com/_/eclipse-temurin -> "Creating a JRE using jlink"