In this 12-minute clip I'll go through some modern JDK tools such as JLink, JPackage, and how to use a two-phase Docker build to use a customized JRE that's suited to just what you need, nothing more. In other words, we're making Java leaner and meaner than just using the default Java that contains all modules.
I'll be also showing how to tailor the JVM for a typical Spring Boot application that contains REST APIs and Spring Data database code. I'm showing these on JDK 16, but the same principles apply for JDK 17, and several versions back as well.
Code examples can be found from this repo:
github.com/crystoll/testdatam...
Timecodes:
0:00 - Introduction
1:04 - Java 16 tooling
1:24 - JLink tool - how to create minimal JRE
6:15 - JPackage tool - how to create an installer for custom JRE+App
9:00 - Use two-phase Docker build to build with customized JRE
11:55 - Conclusion
If you have questions, comments, please use the comment section, and click that like button if you like this content. Also, did you find this information useful or trivial? Let me know in the comment section!
Негізгі бет How to use jlink, jpackage and docker to put your Java on a diet! (Custom JDK/JRE)
Пікірлер: 24