idmtools_platform_local.internals.task_functions.docker_run module

idmtools local platform docker tasks tools.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

idmtools_platform_local.internals.task_functions.docker_run.docker_perform(command: str, experiment_uuid: str, simulation_uuid: str, container_config: dict) idmtools_platform_local.status.Status

Run command in docker.

Parameters:
  • command – Command to run

  • experiment_uuid – Experiment uuid

  • simulation_uuid – Simulation uuid

  • container_config – Container config.

Returns:

Job status

idmtools_platform_local.internals.task_functions.docker_run.run_container(command, container_config, current_job, simulation_path, simulation_uuid)

Run our docker task.

Parameters:
  • command – Command to run

  • container_config – Docker container config

  • current_job – Current job

  • simulation_path – Simulation path

  • simulation_uuid – Simulation uuid

Returns:

Results of job(0 for success, 1 or other code for failures)