Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.py 1.2KB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import sys
  2. from .version import __version__
  3. DEFAULT_DOCKER_API_VERSION = '1.41'
  4. MINIMUM_DOCKER_API_VERSION = '1.21'
  5. DEFAULT_TIMEOUT_SECONDS = 60
  6. STREAM_HEADER_SIZE_BYTES = 8
  7. CONTAINER_LIMITS_KEYS = [
  8. 'memory', 'memswap', 'cpushares', 'cpusetcpus'
  9. ]
  10. DEFAULT_HTTP_HOST = "127.0.0.1"
  11. DEFAULT_UNIX_SOCKET = "http+unix:///var/run/docker.sock"
  12. DEFAULT_NPIPE = 'npipe:////./pipe/docker_engine'
  13. BYTE_UNITS = {
  14. 'b': 1,
  15. 'k': 1024,
  16. 'm': 1024 * 1024,
  17. 'g': 1024 * 1024 * 1024
  18. }
  19. INSECURE_REGISTRY_DEPRECATION_WARNING = \
  20. 'The `insecure_registry` argument to {} ' \
  21. 'is deprecated and non-functional. Please remove it.'
  22. IS_WINDOWS_PLATFORM = (sys.platform == 'win32')
  23. WINDOWS_LONGPATH_PREFIX = '\\\\?\\'
  24. DEFAULT_USER_AGENT = f"docker-sdk-python/{__version__}"
  25. DEFAULT_NUM_POOLS = 25
  26. # The OpenSSH server default value for MaxSessions is 10 which means we can
  27. # use up to 9, leaving the final session for the underlying SSH connection.
  28. # For more details see: https://github.com/docker/docker-py/issues/2246
  29. DEFAULT_NUM_POOLS_SSH = 9
  30. DEFAULT_MAX_POOL_SIZE = 10
  31. DEFAULT_DATA_CHUNK_SIZE = 1024 * 2048
  32. DEFAULT_SWARM_ADDR_POOL = ['10.0.0.0/8']
  33. DEFAULT_SWARM_SUBNET_SIZE = 24