Skip to content

HDDS-14229. Create slim ozone-runner image#51

Merged
adoroszlai merged 3 commits into
apache:slimfrom
rich7420:HDDS-14229
Dec 25, 2025
Merged

HDDS-14229. Create slim ozone-runner image#51
adoroszlai merged 3 commits into
apache:slimfrom
rich7420:HDDS-14229

Conversation

@rich7420

Copy link
Copy Markdown

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

@adoroszlai adoroszlai left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread 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
Copy Markdown
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 \

Comment thread Dockerfile Outdated
Comment on lines +191 to +104
ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"]
ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"] No newline at end of file

Copy link
Copy Markdown
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
Copy Markdown
Author

@adoroszlai thanks for the review!

@adoroszlai adoroszlai left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread 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
Copy Markdown
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
Copy Markdown
Author

fixed, thx for the reminder!

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

Copy link
Copy Markdown
Contributor

Thanks @rich7420 for the patch.

@rich7420

Copy link
Copy Markdown
Author

Thanks @adoroszlai !

@adoroszlai

Copy link
Copy Markdown
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