Using openjdk headless

42 views
Skip to first unread message

Rodolphe Quiédeville

unread,
Mar 5, 2025, 10:36:30 AM3/5/25
to debezium
Hi,

I've successfuly rebuild all the docker images using java-21-openjdk-headless instead of java-21-openjdk  in the Base image, with a final result of smaller image by 400MB.
I tested debezium connect with a postgresql connector as source on 3.1 version.

I did not find any subject related to this in previous discussion, hope I did not miss one.

What do you think to reduce the siae of the image but also depencies loaded by using the headless version ?

Best

jiri.p...@gmail.com

unread,
Mar 6, 2025, 12:36:09 AM3/6/25
to debezium
Hi,

I don't think it is an issue. IIRC we've just never optimized the image.

Jiri

Rodolphe Quiédeville

unread,
Mar 6, 2025, 3:16:45 AM3/6/25
to debe...@googlegroups.com
Hi,

Thanks for your reply, I'm working on the optimisation for now and trying to follow some other ideas like using a JRE instead of JDK and building on Alpine instead of Fedora to reduce the number of CVE alerts when scanning the image. Let me finish this work and I'll make some suggestions.

Best

--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/97eedb91-0423-4c08-bb87-e96eeec9acedn%40googlegroups.com.


--
Logo Smartway 
Rodolphe
QUIEDEVILLE

Head of Platform
r.quie...@smartway.ai
(+33) 285 52 21 18
  
6 Avenue Marcelin Berthelot • Bâtiment Le Newton • 44800 SAINT-HERBLAIN • France
smartway.ai

Pour planifier un rendez-vous  https://calendar.app.google/HXxNdrmZbag96jko6

Gunnar Morling

unread,
Mar 15, 2025, 11:48:46 AM3/15/25
to debezium
Hey,

Using java-21-openjdk-headless sounds reasonable and I think that would be a welcomed change; but I'd advise against moving to Alpine, there have been reports in the past that its libc implementation isn't fully compatible, causing some issues. I don't know the specific details, but I'd be wary of chasing all sorts of odd bugs due to that.

--Gunnar

jiri.p...@gmail.com

unread,
Mar 17, 2025, 12:34:44 AM3/17/25
to debezium
Hi,

I agree on this one. WFRT CVEs - it should be enough to upgrade `base` image to latest Fedora.

Jiri

Reply all
Reply to author
Forward
0 new messages