~/talk

Crafting the Ultimate Docker Image for Spring Applications

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [spring]
slides:none on file

Starts from a 580 MB fat JAR image where each build adds ~500 MB, shows a multi-stage Dockerfile that drops the image to ~59 MB and introduces Spring Boot layers so subsequent pushes pull only the ~3 MB delta. Demonstrates pack/buildpacks doing that automatically, explains CDS (app class-data sharing) cutting startup by ~50–80% (example: a 2 minute ThingsBoard cold start down to seconds), contrasts Graal/native images (good for small services) and CRaC checkpoint/restore which can reach 10–50 ms but requires special privileges.

AI-written summary · about

  1. 0:00Introduction and basics
  2. 3:56Initial Docker optimization
  3. 8:25Multi-stage builds and layering
  4. 12:08Exploring jar layer structure
  5. 17:40Using Paketo buildpacks
  6. 21:15Optimizing startup time with CDS
  7. 27:27CRAC checkpointing
  8. 34:00Implementing manual checkpointing
  9. 36:40Native images and summary
  10. 39:45Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.