-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(image): add progress bar for image layer pulling #8186
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
b6dddf7
to
729e89a
Compare
This approach may help.
|
Signed-off-by: nikpivkin <[email protected]>
486cb9a
to
191cf46
Compare
Signed-off-by: nikpivkin <[email protected]>
@knqyf263 I encountered a problem: if the --max-image-size flag is not passed, layers are processed without preloading. As a result, messages are displayed in logs during layer processing, which breaks the display of progress bars. What if we wrap the logger, and clear the progress bars before logging the message, so as not to noise the output? |
Yes, so we have to show the progress bar only when |
OK, I will implement it only when using |
Adding logging in the case of loading images can also break progress bars and it can be hard to keep track of. |
It looks like a good idea. |
@knqyf263 I'd like to discuss some details. In order for progress to display correctly and not break when logging or creating multiple progress bars, we need to:
I found a package that meets all the requirements: https://github.com/vbauerster/mpb
WDYT? |
@nikpivkin The library looks good to me, but how hard is it to implement? We wanted to introduce progress bars to improve the UX, but if it's too hard to implement, I don't see the need to spend that much time on it. |
I actually think this is a big change for a small UX improvement. |
OK, then we should suspend it until we can find an easy way. |
Description
TODO:
max-image-size
Example:
Related issues
Related PRs
Remove this section if you don't have related PRs.
Checklist