DockerComposeContext#

class eclypse.io.context.DockerComposeContext[source]#

Bases: ApplicationContext

Customisation context for Docker Compose application import and export.

Parameters:
  • require_services (bool) – Whether imported Docker Compose data must contain the required top-level services mapping. Defaults to True.

  • require_service_image_or_build (bool) – Whether every service must define either image or build. Defaults to True.

  • allow_image_fallback_to_node (bool) – Whether exports may use the ECLYPSE node id as Docker image when neither image nor container_image nor build is present. Defaults to False.

Methods

__init__([node_assets, edge_assets, ...])

Attributes

require_services: bool#
require_service_image_or_build: bool#
allow_image_fallback_to_node: bool#
__init__(node_assets=None, edge_assets=None, update_policies=None, seed=None, strict=True, include_default_assets=False, requirement_init='min', services=<factory>, require_services=True, require_service_image_or_build=True, allow_image_fallback_to_node=False)#
Parameters:
  • node_assets (dict[str, Asset] | None)

  • edge_assets (dict[str, Asset] | None)

  • update_policies (UpdatePolicies)

  • seed (int | None)

  • strict (bool)

  • include_default_assets (bool)

  • requirement_init (InitPolicy)

  • services (dict[str, type[Service]])

  • require_services (bool)

  • require_service_image_or_build (bool)

  • allow_image_fallback_to_node (bool)

Return type:

None