DockerComposeContext#
- class eclypse.io.context.DockerComposeContext[source]#
Bases:
ApplicationContextCustomisation context for Docker Compose application import and export.
- Parameters:
require_services (bool) – Whether imported Docker Compose data must contain the required top-level
servicesmapping. Defaults toTrue.require_service_image_or_build (bool) – Whether every service must define either
imageorbuild. Defaults toTrue.allow_image_fallback_to_node (bool) – Whether exports may use the ECLYPSE node id as Docker image when neither
imagenorcontainer_imagenorbuildis present. Defaults toFalse.
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