I have been using the confluentinc/cp-server-connect Docker image (version 7.9.1) and noticed that the image size is quite large. Upon further inspection, I found that the image includes the OpenJDK, which might not be necessary for runtime purposes. Using a JRE instead of a JDK could significantly reduce the image size. The current image size is 3.5Go, i quite huge.
Observations:
-
Image Size:
- The image size is quite large, making it less efficient for deployment in environments where smaller images are preferred.
- This impacts pull times, storage requirements, and overall efficiency in CI/CD pipelines.
-
OpenJDK vs. JRE:
- The image currently uses OpenJDK, which includes development tools that are not required for running Kafka Connect in production.
- Switching to a JRE (Java Runtime Environment) would provide only the runtime components needed to execute Java applications, reducing the image size.
Questions:
- Is there a specific reason for including the JDK instead of the JRE in the Docker image?
- Are there plans to provide a slimmer version of the image, perhaps using a JRE or a minimal base image?
Thank you for your work on Kafka and for providing these Docker images. I look forward to your insights on this matter.
I have been using the
confluentinc/cp-server-connectDocker image (version7.9.1) and noticed that the image size is quite large. Upon further inspection, I found that the image includes the OpenJDK, which might not be necessary for runtime purposes. Using a JRE instead of a JDK could significantly reduce the image size. The current image size is 3.5Go, i quite huge.Observations:
Image Size:
OpenJDK vs. JRE:
Questions:
Thank you for your work on Kafka and for providing these Docker images. I look forward to your insights on this matter.