r/java • • Oct 08 '26

Brewlet: Java on Kubernetes with node-managed JDKs

https://brewlet.sh
20 Upvotes

17 comments sorted by

View all comments

Show parent comment

5

u/brunocborges Oct 08 '26

Base images without complex build pipelines, end up being recommendations. And when the base image changes, apps need to be rebuilt and pushed again.

Check out the slides on the Devoxx site for some insights on comparison with Cloud Foundry and even Buildpacks.

2

u/Nice-Solid-3707 Oct 08 '26

According to docs I must maintain node configuration for all available jdk variants instead of providing developers a list of bases they can freely chose from. Yeah, no

2

u/brunocborges Oct 08 '26

Yeap, certainly not a silver bullet solution. Many teams will not be interested and that's fine.

0

u/Nice-Solid-3707 Oct 08 '26

One get request before build invocation doesn’t make pipeline complex

2

u/brunocborges Oct 08 '26

How do you ensure app teams did not change the JDK in their downstream image?

1

u/Nice-Solid-3707 Oct 08 '26

Ah, you probably meant pushing to registry? That’s trivial too - only service accounts have write access

2

u/brunocborges Oct 08 '26

I meant someone doing something like this:

FROM <base>
ADD app.jar
RUN wget <url for another JDK>
CMD [anotherjdk/bin/java ...]

0

u/Nice-Solid-3707 Oct 08 '26

By forbidding pushes changing cicd definitions, including dockerfile. This is trivial

2

u/brunocborges Oct 08 '26

And how is the process of patching JDK and dependencies across multiple apps?

2

u/Nice-Solid-3707 Oct 08 '26

You patch base image and dependabot/renovate does the rest