Skip to content

Conversation

@rich7420
Copy link
Contributor

What changes were proposed in this pull request?

Remove unnecessary files to reduce image size.

What is the link to the Apache JIRA

HDDS-13426

How was this patch tested?

https://github.com/rich7420/ozone/actions/runs/20397728746

@adoroszlai adoroszlai marked this pull request as draft December 21, 2025 07:06
@adoroszlai
Copy link
Contributor

Thanks @rich7420 for working on this. I have a few concerns:

  1. This Dockerfile is mostly unused. Ozone's Docker image is in a separate repository: https://github.com/apache/ozone-docker I'll file a task to remove it and related parts of the POM.
  2. We should create alternative "slim" image, not strip content from existing image.
  3. Deleting files in a RUN step does not reduce size grown in previous steps (ADD in this case), because images are layered.

@rich7420
Copy link
Contributor Author

oh ok, understood. I'll close this one and open a PR in ozone-docker repo.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants