HTTP_TIMEOUT as importable constant for consistency
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
b110bbe9e3
commit
f9c7346380
3 changed files with 7 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
|
||||
DEFAULT_TIMEOUT = 10
|
||||
LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'
|
||||
|
|
@ -6,3 +7,4 @@ LABEL_PROJECT = 'com.docker.compose.project'
|
|||
LABEL_SERVICE = 'com.docker.compose.service'
|
||||
LABEL_VERSION = 'com.docker.compose.version'
|
||||
LABEL_CONFIG_HASH = 'com.docker.compose.config-hash'
|
||||
HTTP_TIMEOUT = int(os.environ.get('COMPOSE_HTTP_TIMEOUT', os.environ.get('DOCKER_CLIENT_TIMEOUT', 60)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue