bugfinder.base.processing.containers

Abstract classes for creating processing steps.

class bugfinder.base.processing.containers.AbstractContainerProcessing(dataset, deprecation_warning=None)

Bases: AbstractProcessing

Abstract class for processing data using a Docker container.

assign_ports()

Randomly assign ports on the machine.

command = None
configure_command(command)

Configure the command to be sent to the container. Needs to be implemented by the subclass.

Parameters

command

abstract configure_container()

Configure the given container automatically. Needs to be implemented by the subclass.

configure_container_with_dict(container_config)

Configure the given container manually. Needs to be implemented by the subclass.

Parameters

container_config

container = None
container_name = ''
container_ports = None
detach = True
environment = None
execute(command_args=None, container_config=None)

Execute the processing using the processing container.

Parameters
  • command_args

  • container_config

image_name = ''
machine_ports = None
abstract send_commands()

Send the commands to container. Needs to be implemented by the subclass.

start_retries = 3
volumes = None