Skip to content

Why our im #451

Description

@dust63

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:

  1. 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.
  2. 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:

  1. Is there a specific reason for including the JDK instead of the JRE in the Docker image?
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions