Skip to content
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

[REQUEST] Provide a mean to outputs in the same was as docker buildx #3179

Open
hpe-ykoehler opened this issue Oct 31, 2023 · 1 comment
Open

Comments

@hpe-ykoehler
Copy link

hpe-ykoehler commented Oct 31, 2023

The docker buildx output is quite interesting, it provides output that are important and output that are temporary and will result in a collapse into a important line:

[+] Building 353.2s (26/62)                                                                                                     docker-container:distracted_saha
 => CACHED [dev_container_auto_added_stage_label  4/46] RUN wget -qO /etc/apt/trusted.gpg.d/llvm.asc https://apt.llvm.org/llvm-snapshot.gpg.key     && add-apt-repository -y 'deb htt  0.0s
 => [dev_container_auto_added_stage_label  5/46] RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -    && export DEBIAN_FRONTEND=noninteractive     && apt-get update &&   84.2s
 => [dev_container_auto_added_stage_label  6/46] RUN wget -qO /etc/apt/trusted.gpg.d/kitware-key.asc https://apt.kitware.com/keys/kitware-archive-latest.asc     && echo "deb https:  13.5s
 => [dev_container_auto_added_stage_label  7/46] RUN gem install ceedling                                                                                                             18.6s
 => [dev_container_auto_added_stage_label  8/46] RUN pip install conan==2.0.9 xmltodict                                                                                                5.5s
 => [dev_container_auto_added_stage_label  9/46] RUN pip install pyang                                                                                                                 3.8s
 => [dev_container_auto_added_stage_label 10/46] RUN pip install cruft cookiecutter                                                                                                    3.2s
 => => #   Downloading types_python_dateutil-2.8.19.14-py3-none-any.whl (9.4 kB)
 => => # Collecting smmap<6,>=3.0.1
 => => #   Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
 => => # Collecting mdurl~=0.1
 => => #   Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
 => => # Requirement already satisfied: six>=1.5 in /usr/lib/python

The => are the important one those stay there and have a dark blue, where as the temporary are the => => and those are grey and scrolls within a 5-6 lines window, then disappear when done.

There is also a "current" line just above the temporary in white that says which task the system is doing at this time.

This particular output allow someone to monitor if the script is dead or not, while following the progress of the important steps, the temporary lines are just to ensure the script is not dead or waiting on some network activity that would explain why the scrolling stop.

There is also a top-level title showing the big operation and how much time it is started

Could you provide a sample/example within the rich library as to how to achieve that?

Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

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

No branches or pull requests

1 participant