cwltool.docker
Enables Docker software containers via the {u,}docker or podman runtimes.
Module Contents
Classes
Runs a |
|
Runs a |
- class cwltool.docker.DockerCommandLineJob(builder, joborder, make_path_mapper, requirements, hints, name)
Bases:
cwltool.job.ContainerCommandLineJob
Runs a
CommandLineJob
in a software container using the Docker engine.- Parameters:
builder (cwltool.builder.Builder) –
joborder (cwltool.utils.CWLObjectType) –
make_path_mapper (Callable[[List[cwltool.utils.CWLObjectType], str, cwltool.context.RuntimeContext, bool], cwltool.pathmapper.PathMapper]) –
requirements (List[cwltool.utils.CWLObjectType]) –
hints (List[cwltool.utils.CWLObjectType]) –
name (str) –
- get_image(docker_requirement, pull_image, force_pull, tmp_outdir_prefix)
Retrieve the relevant Docker container image.
- get_from_requirements(r, pull_image, force_pull, tmp_outdir_prefix)
- static append_volume(runtime, source, target, writable=False, skip_mkdirs=False)
Add binding arguments to the runtime list.
- add_file_or_directory_volume(runtime, volume, host_outdir_tgt)
Append volume a file/dir mapping to the runtime option list.
- add_writable_file_volume(runtime, volume, host_outdir_tgt, tmpdir_prefix)
Append a writable file mapping to the runtime option list.
- add_writable_directory_volume(runtime, volume, host_outdir_tgt, tmpdir_prefix)
Append a writable directory mapping to the runtime option list.
- class cwltool.docker.PodmanCommandLineJob(builder, joborder, make_path_mapper, requirements, hints, name)
Bases:
DockerCommandLineJob
Runs a
CommandLineJob
in a software container using the podman engine.- Parameters:
builder (cwltool.builder.Builder) –
joborder (cwltool.utils.CWLObjectType) –
make_path_mapper (Callable[[List[cwltool.utils.CWLObjectType], str, cwltool.context.RuntimeContext, bool], cwltool.pathmapper.PathMapper]) –
requirements (List[cwltool.utils.CWLObjectType]) –
hints (List[cwltool.utils.CWLObjectType]) –
name (str) –