confluentinc / common-docker

Confluent Commons with support for building and testing Docker images.
Apache License 2.0
4 stars 69 forks source link

Why do we install both the JRE and the JDK? #521

Open yeikel opened 3 months ago

yeikel commented 3 months ago

I noticed that we are currently installing both the JDK and the JRE to the image:

https://github.com/confluentinc/common-docker/blob/c782a4fe3b2205ea1b8c9fd42e4cf1e3bd8b3b06/base/Dockerfile.ubi8#L103

Is there any particular reason why we need both?

Typically the JDK includes everything the JRE does plus additional build tools. It is unclear to me why we need to add both to the image