summaryrefslogtreecommitdiff
path: root/compose/progress_stream.py
Commit message (Collapse)AuthorAge
* fix race condition after pulling imageStephan Müller2019-01-09
| | | | Signed-off-by: Stephan Müller <mail@stephanmueller.eu>
* Add progress messages to parallel pullJoffrey F2018-07-25
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Manage encoding errors in progress_streamJoffrey F2018-03-15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* progress_stream: Avoid undefined ANSI escape codesIan Campbell2016-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | The ANSI escape codes \e[0A (cursor up 0 lines) and \e[0B (cursor down 0 lines) are not well defined and are treated differently by different terminals. In particular xterm treats 0 as a missing parameter and therefore defaults to 1, whereas rxvt-unicode treats these escapes as a request to move 0 lines. However the use of these codes is unnecessary and were really just hiding the fact that we were not correctly computing diff when adding a new line. Having added the new line to the ids map and output the corresponding \n the correct diff would be 1 and not 0 (which xterm interprets as 1) as currently. Rather than changing the hardcoded 0 to a 1 pull the diff calculation out and always do it since it produces the correct answer in both cases. This fixes similar corruption when compose is pulling an image to that seen with `docker pull` and rxvt-unicode (and likely other terminals in that family) seen in docker/docker#28111. This is the same as the fix made to Docker's pkg/jsonmessage in https://github.com/docker/docker/pull/28238 (and I have shamelessly ripped off most of this commit message from there). Signed-off-by: Ian Campbell <ian.campbell@docker.com>
* Implement 'docker-compose push' and 'docker-compose bundle'Aanand Prasad2016-06-14
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Update pre-commit config to enforace that future imports exist in all files.Daniel Nephin2016-01-07
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Reorganize conditional branches to improve readabilityJoffrey F2015-11-11
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fixes #1490Yves Peter2015-11-11
| | | | | | progress_stream would print a lot of new lines on "docker-compose pull" if there's no tty. Signed-off-by: Yves Peter <ypdraw@gmail.com>
* Fix split buffer with inconsistently delimited json objects.Daniel Nephin2015-10-06
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Fix build against the swarm cluster by joining buffered output before ↵Daniel Nephin2015-10-06
| | | | | | parsing json. Signed-off-by: Daniel Nephin <dnephin@docker.com>
* Update unit tests for stream_output to match the behaviour of a docker-py ↵Daniel Nephin2015-08-25
| | | | | | response. Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Run tests against Python 2.6, 2.7, 3.3, 3.4 and PyPy2funkyfuture2015-08-25
| | | | | | | | | | | | In particular it includes: - some extension of CONTRIBUTING.md - one fix for Python 2.6 in tests/integration/cli_test.py - one fix for Python 3.3 in tests/integration/service_test.py - removal of unused imports Make stream_output Python 3-compatible Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
* Support python 3Daniel Nephin2015-08-25
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Run pre-commit on all filesDaniel Nephin2015-08-24
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Possible division by zero error when pulling an image - fixes #1463Todd Whiteman2015-05-26
| | | | Signed-off-by: Todd Whiteman <todd.whiteman@joyent.com>
* WIP: rename Fig to ComposeAanand Prasad2015-01-20
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>