-
Notifications
You must be signed in to change notification settings - Fork 23
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
HDDS-5045. Add rclone package for robot test #37
Conversation
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 @ptlrs for working on this.
Dockerfile
Outdated
@@ -58,6 +58,11 @@ RUN sudo python3 -m pip install --upgrade pip | |||
|
|||
COPY --from=go /go/bin/csc /usr/bin/csc | |||
|
|||
RUN dnf install -y unzip \ | |||
&& curl https://rclone.org/install.sh | sudo bash \ |
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'd rather re-implement download and extraction, instead of relying on a remote script that needs to be run as root
.
Checksums are also available, see https://rclone.org/release_signing/
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 am now using the latest rpm packages available from https://downloads.rclone.org/?sort=time&order=desc.
This helps to test with newer rclone packages as they are released.
Is this approach ok or is the preferred approach still to pin the package version and verify the checksums before using them? I can update the changes to use this approach if it is preferred.
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 @ptlrs for updating the patch, LGTM.
What changes were proposed in this pull request?
This PR adds the rclone tool needed for robot tests
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5045
Please replace this section with the link to the Apache JIRA)
How was this patch tested?
CI: https://github.com/ptlrs/ozone-docker-runner/actions/runs/12306659392
Manually built and ran the dev image