This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
Fixes #147 COMPOSE_HTTP_TIMEOUT regression #660
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ISSUE TYPE
SUMMARY
It looks like issue #147 was originally resolved by PR #318, but I'm building a 1.8GB image in ansible-container 0.9.1 and getting the same behavior as that user originally reported - but neither exporting COMPOSE_HTTP_TIMEOUT=3000 to my outer "build" environment nor adding it to the conductor settings environment changes the (read timeout=60) in my error output.
If I add the timeout parameter to the Docker client instantiation in
container/docker/engine.py
as in the original pull request I am able to build the image.The reason for the regression seems to be a switch from directly instantiating
docker.AutoVersionClient
to callingdocker.from_env
. It's not clear to me whyCOMPOSE_HTTP_TIMEOUT
is not being used bydocker-py
internally when instantiating a client withfrom_env
, butfrom_env
does support the timeout parameter, so this pull request refers to os.environ fromcontainer/docker/engine.py
to set the timeout parameter withCOMPOSE_HTTP_TIMEOUT
Before:
After:
Adding COMPOSE_HTTP_TIMEOUT=300 in
conductor
settingsenvironment
directive allows entire build to complete as expected without timeout