dml_util.runners.container#

Container-based execution runners.

This module provides runners for executing tasks in container environments, such as Docker. These runners can execute commands in isolated containers with specific images and configurations.

Classes

DockerRunner(config, input)

Runs a command in a Docker container.

Test(config, input)

A test runner that simulates Docker for testing.

class dml_util.runners.container.DockerRunner(config, input)[source]#

Bases: RunnerBase

Runs a command in a Docker container.

Parameters:
classmethod funkify(image, sub, docker_path=None, flags=None)[source]#
gc(state)[source]#

Clean up any resources.

get_docker_exit_code(cid)[source]#
get_docker_logs(cid)[source]#
get_docker_status(cid)[source]#
start_docker(tmpd, sub_adapter, sub_uri)[source]#
submit()[source]#
update(state)[source]#

Update the state and return the new state, message, and response.

The gc method is called if and only if the returned state is None.

class dml_util.runners.container.Test(config, input)[source]#

Bases: DockerRunner

A test runner that simulates Docker for testing.

Parameters:
gc(state)[source]#

Clean up any resources.

get_docker_exit_code(cid)[source]#
get_docker_logs(cid)[source]#
get_docker_status(cid)[source]#
start_docker(flags, image_uri, *sub_cmd)[source]#