camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Why's there JDK inside the camel-k-kit-* images?

Open bjethwan opened this issue 3 years ago • 3 comments

Why's there JDK inside the camel-k-kit-* images? And 384MB image for a simple route with basic log and timer components ?

This is using one of your samples

cd bipin_projects/camel-k-example-basic
kamel run Basic.java

dive bjethwan/camel-k-kit-cb2uqgpng1rc7386k9dg:6357 image

bjethwan avatar Jul 07 '22 18:07 bjethwan

Thanks for raising it. JDK is required by the JOOR compiler, that compiles the Java routes at start time. It should be possible to use a JRE-only base image when using the other supported languages, and reduce the integration image size significantly.

astefanutti avatar Jul 08 '22 08:07 astefanutti

@astefanutti I think you have a perfect case for cloud native buildpacks, paketo maybe.

bjethwan avatar Jul 08 '22 08:07 bjethwan

We always need a JDK/JRE based container as at the end of the day we run a Camel application, so a buildpack style approach would be limited. Probably we can simply detect if an application has some java source (in which case we use the JDK), otherwise we can use a JRE image.

squakez avatar Jul 13 '22 13:07 squakez

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Oct 12 '22 00:10 github-actions[bot]

Closed in favour of #3743

squakez avatar Oct 13 '22 07:10 squakez