docker_compose#
Launch Fluent through docker compose.
Classes:
|
Launch Fluent through docker or Podman compose. |
- class ansys.fluent.core.docker.docker_compose.ComposeBasedLauncher(compose_config, container_dict, container_server_info_file)#
Bases:
objectLaunch Fluent through docker or Podman compose.
Methods:
__init__(compose_config, container_dict, ...)Check if the image exists locally.
Change ownership of the server info file inside the container.
Pull a Docker image if it does not exist locally.
start()Start the services.
stop()Stop the services.
Attributes:
Return the ports of the launched services.
- __init__(compose_config, container_dict, container_server_info_file)#
- check_image_exists()#
Check if the image exists locally.
- chown_server_info_file()#
Change ownership of the server info file inside the container.
- Raises:
RuntimeErrorIf the command fails.
- pull_image()#
Pull a Docker image if it does not exist locally.
- start()#
Start the services.
- Raises:
subprocess.CalledProcessErrorIf the command fails.
- stop()#
Stop the services.
- Raises:
subprocess.CalledProcessErrorIf the command fails.