Option to report progress while building context
See original GitHub issueWhen building an exceptionally large context, there is no way to report progress. I’d opt to add an option to the util’s make context method of progress=False
, so that people can manually call the function and set progress=True
if they desire it.
To see the problem in action, use this repo (note the docker branch) and run toolset/run-tests.py --install server --docker --test ''
(you will need python 2.7 and the requirements listed here. Building teh context can sometimes take up to 15 minutes (note: this is on an NFS filesystem which is notoriously slow when tarring a lot of small files) and normally takes about 5 minutes (on my local SSD)
Issue Analytics
- State:
- Created 9 years ago
- Reactions:15
- Comments:8 (2 by maintainers)
Top Results From Across the Web
What is a progress report and how can you effectively manage ...
A progress report allows you to get important information on project completion. ScrumGenius is a simple, yet powerful, tool that can improve your...
Read more >8 steps to write an effective project status report - Asana
Effective project status reports are the best way to keep your stakeholders aligned and in the loop during your project progress.
Read more >Enhancement: builder: support progress report when no TTY ...
Currently, Docker build suppresses progress output when running in a script, ... I get a progress report for the "Sending build context.
Read more >Show progress only if a background operation is long
Here's what I'd do: 1) Use a BackgroundWorker. 2) In before you call the method RunWorkerAsync, store the current time in a variable....
Read more >Building Progress Bars for the Web with Django and Celery
When preparing a file for download; When the user is in a queue waiting for their request to get processed. The Components of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I monkey patched
docker/api/build.py
and progress info via the class below. This class wraps a file object and will report how much of has been read. Once this class is defined, you can see progress by addingcontext = StreamPrinter(context)
before we make the_post
call.This is still a bit messy and I’m not sure that this is the best approach, which is why I didn’t make a pull request. But thought others may find it useful.
https://gabrieldemarmiesse.github.io/python-on-whales/ The only downside is that it’ll be open source next year.