-
Notifications
You must be signed in to change notification settings - Fork 190
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
Show progress bar when downloading or pushing content from/to a registry #893
Comments
Although we don't have a progress bar implemented for $ blob_ref=ghcr.io/oras-project/oras@sha256:74529e03eae02d1fff5c05e9a6ec2089e1f5ae96421169c29a7c165346e042e4
$ size=$(oras blob fetch --descriptor $blob_ref | jq -r .size)
$ oras blob fetch $blob_ref --output - | pv -s $size > layer.bin
1.58MiB 0:00:03 [1.47MiB/s] [================================> ] 45% ETA 0:00:03 |
How about using https://github.com/schollz/progressbar rather than depending on external utility. I have done the basic changes for the issue. Should we also implement the same for blob push as well. I will make the PR, just let me know. |
I am interested in working on this. // @sajayantony @FeynmanZhou @qweeah |
@amands98 Sorry for not updated the status but I have already worked on this, I have two PoC in my own fork, please check |
It contains <1.0 dependencies which we want to avoid. |
What is the version of your ORAS CLI
v1.0.0-RC.2
What would you like to be added?
Per the discussion at ORAS slack channel, @vsoch suggests design and provide a progress bar when downloading content from the remote registry.
Why is this needed for ORAS?
It would be helpful to show the progress bar in ORAS CLI commands such as oras blob fetch, especially when downloading a big layer or blob. Sometimes, the file transfer might be stuck but users are not aware of the progress. If ORAS output displays no output for a while, it will look broken. A good spinner or progress bar/indicator can make a CLI appear to be easier to use. It’s also good to show the estimated time remaining, or even just have an animated component, to reassure them that you’re still working on it.
Similarly, we could also add a progress bar to the
push
scenario. This would be a UX improvement.Are you willing to submit PRs to contribute to this feature?
The text was updated successfully, but these errors were encountered: