-
Couldn't load subscription status.
- Fork 9.1k
HADOOP-19038. Improve create-release RUN script. #6448
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
|
🎊 +1 overall
This message was automatically generated. |
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.
Leave one nit comment inline. Thanks.
| echo "RUN groupadd --non-unique -g ${group_id} ${user_name}" | ||
| echo "RUN useradd -g ${group_id} -u ${user_id} -m ${user_name}" | ||
| echo "RUN chown -R ${user_name} /home/${user_name}" | ||
| echo "RUN groupadd --non-unique -g ${group_id} ${user_name}; exit 0;" |
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.
Do we need to check if this command execute successfully or not here?
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.
Thank you for reviewing this PR! Once an error occurs in the RUN script, the image building process is terminated. The error I encountered does not block the overall compilation process, so I added exit 0. I hope that even if there is an error, the subsequent compilation process can continue.
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.
i understand: existence of the root user in the docker image must not be a blocker
|
@Hexiaoqiao Can you help review this PR again? Thank you very much! |
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.
LGTM. +1
|
@steveloughran @Hexiaoqiao Thanks for reviewing the code! |
…by Shilun Fan. Reviewed-by: Steve Loughran <[email protected]> Reviewed-by: He Xiaoqiao <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
…by Shilun Fan. Reviewed-by: Steve Loughran <[email protected]> Reviewed-by: He Xiaoqiao <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
…buted by Shilun Fan. Reviewed-by: Steve Loughran <[email protected]> Reviewed-by: He Xiaoqiao <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
Description of PR
JIRA: HADOOP-19038. Improve create-release RUN script.
Using
create-releasewill create a docker image locally, but three of the RUN scripts may fail to execute.Even if these three scripts fail, subsequent steps can continue to be executed, so I added exit 0 after the script.
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?