The Wayback Machine - https://web.archive.org/web/20250811035901/https://github.com/docker/compose/pull/10281
Skip to content

compact TUI to monitor layers download progress #10281

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

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Feb 14, 2023

What I did
As terminal height might not allow to display per-layers download progress status, render a compact TUI using 8-dots braille chars as progress status

see demo on https://asciinema.org/a/4jZWUZfhcXouJPd1p6h0yMxtC

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Base: 72.79% // Head: 73.89% // Increases project coverage by +1.10% 🎉

Coverage data is based on head (59fb7d6) compared to base (593c426).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10281      +/-   ##
==========================================
+ Coverage   72.79%   73.89%   +1.10%     
==========================================
  Files           2        2              
  Lines         272      272              
==========================================
+ Hits          198      201       +3     
+ Misses         62       60       -2     
+ Partials       12       11       -1     
Impacted Files Coverage Δ
pkg/e2e/framework.go 72.15% <0.00%> (+1.17%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!! Looks really good 🥳

@williamdes
Copy link

It's so cute!!
can we have a percentage right after the text?

@ndeloof ndeloof force-pushed the tui branch 2 times, most recently from f376e43 to ffe3aa8 Compare February 14, 2023 16:42
@ndeloof
Copy link
Contributor Author

ndeloof commented Feb 14, 2023

this unfortunately breaks the progress alignment, need to double check

@ndeloof ndeloof marked this pull request as draft February 14, 2023 16:52
@ndeloof ndeloof marked this pull request as ready for review February 15, 2023 10:27
)
if jm.Status == "Pull complete" || jm.Status == "Already exists" {
if jm.Status == "Pushed" || jm.Status == "Already exists" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this strings not use some sort of enum or const ?
(I don't know golang)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately golang doesn't have enums
ideally, const should be defined by the Docker Engine API

Copy link

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it with my projects that had the initial scolling bug of docker-compose
Using artifact from: https://github.com/docker/compose/actions/runs/4182986999

The new UI you propose is comprehensive and clean !
It's easy to understand

Very good work !

@ndeloof ndeloof force-pushed the tui branch 5 times, most recently from 1851b42 to 89a36ba Compare February 15, 2023 13:47
@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours and milas and removed request for a team February 15, 2023 15:52
@ndeloof ndeloof force-pushed the tui branch 2 times, most recently from cc0bbe9 to 51d7307 Compare February 16, 2023 10:36
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@williamdes
Copy link

let me know if the recent changes need that I retry
this is a good test project https://github.com/wdesportes/phpmyadmin-local-setup/blob/main/docker-compose.yml

Copy link
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it on Windows in PowerShell/CMD/Windows terminal and looks good there as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants