Skip to content

Conversation

@rich7420
Copy link

What changes were proposed in this pull request?

Create slim ozone-runner image

What is the link to the Apache JIRA

HDDS-14229

How was this patch tested?

https://github.com/rich7420/ozone-docker-runner/actions/runs/20477564021

@rich7420 rich7420 changed the base branch from master to slim December 24, 2025 06:22
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rich7420 for the patch.

Dockerfile Outdated
echo "${sha256} *openjdk.tar.gz" | sha256sum -c - && \
tar xzvf openjdk.tar.gz -C /usr/local && \
rm -f openjdk.tar.gz
RUN dnf install -y java-21-openjdk-headless && dnf clean all
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no longer needs to be a separate step. Please add java-21-openjdk-headless at:

findutils \
krb5-workstation \

Dockerfile Outdated
Comment on lines 191 to 104
ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"]
ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please don't remove newline at EOF.

@rich7420
Copy link
Author

@adoroszlai thanks for the review!

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rich7420 for updating the patch.

Dockerfile Outdated
ENV JAVA_HOME=/usr/local/jdk-21.0.2
# compatibility with Ozone 1.4.0 and earlier compose env.
RUN mkdir -p /usr/lib/jvm && ln -s $JAVA_HOME /usr/lib/jvm/jre
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed it earlier. Tried to test the image with Ozone, got:

JAVA_HOME /usr/lib/jvm/java-21-openjdk does not exist.

It should be /usr/lib/jvm/jre-21-openjdk.

@rich7420
Copy link
Author

fixed, thx for the reminder!

@adoroszlai adoroszlai merged commit 3570fd6 into apache:slim Dec 25, 2025
1 check passed
@adoroszlai
Copy link
Contributor

Thanks @rich7420 for the patch.

@rich7420
Copy link
Author

Thanks @adoroszlai !

@adoroszlai
Copy link
Contributor

Sorry, I just found that we'll need python after all.

/opt/hadoop/libexec/entrypoint.sh: /opt/hadoop/libexec/envtoconf.py: /usr/bin/python: bad interpreter: No such file or directory

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