const.py 795 B

123456789101112131415161718192021222324
  1. from __future__ import absolute_import
  2. from __future__ import unicode_literals
  3. import os
  4. import sys
  5. DEFAULT_TIMEOUT = 10
  6. HTTP_TIMEOUT = int(os.environ.get('COMPOSE_HTTP_TIMEOUT', os.environ.get('DOCKER_CLIENT_TIMEOUT', 60)))
  7. IMAGE_EVENTS = ['delete', 'import', 'pull', 'push', 'tag', 'untag']
  8. IS_WINDOWS_PLATFORM = (sys.platform == "win32")
  9. LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'
  10. LABEL_ONE_OFF = 'com.docker.compose.oneoff'
  11. LABEL_PROJECT = 'com.docker.compose.project'
  12. LABEL_SERVICE = 'com.docker.compose.service'
  13. LABEL_VERSION = 'com.docker.compose.version'
  14. LABEL_CONFIG_HASH = 'com.docker.compose.config-hash'
  15. COMPOSEFILE_VERSIONS = (1, 2)
  16. API_VERSIONS = {
  17. 1: '1.21',
  18. # TODO: update to 1.22 when there's a Docker 1.10 build to test against
  19. 2: '1.21',
  20. }