You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show progress bar when downloading or pushing content from/to a registry #893
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?
Activity
shizhMSFT commentedon Mar 22, 2023
Although we don't have a progress bar implemented for
orasyet, it is possible withjqandpv. Here's an example:sbdtu5498 commentedon Jun 27, 2023
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.
iambahmanop commentedon Jul 21, 2023
I am interested in working on this. // @sajayantony @FeynmanZhou @qweeah
qweeah commentedon Jul 23, 2023
@amands98 Sorry for not updated the status but I have already worked on this, I have two PoC in my own fork, please check
https://github.com/qweeah/oras/releases/tag/v1.2.0-spinner
https://github.com/qweeah/oras/releases/tag/v1.2.0-bar
qweeah commentedon Jul 23, 2023
It contains <1.0 dependencies which we want to avoid.