-
Notifications
You must be signed in to change notification settings - Fork 29
HDDS-14229. Create slim ozone-runner image #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
adoroszlai
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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:
ozone-docker-runner/Dockerfile
Lines 21 to 22 in d9b35b9
| findutils \ | |
| krb5-workstation \ |
Dockerfile
Outdated
| ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"] | ||
| ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"] |
There was a problem hiding this comment.
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.
|
@adoroszlai thanks for the review! |
adoroszlai
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
|
fixed, thx for the reminder! |
|
Thanks @rich7420 for the patch. |
|
Thanks @adoroszlai ! |
|
Sorry, I just found that we'll need |
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