|
22 | 22 | from sophios import auto_gen_header |
23 | 23 | from sophios.cli import get_args |
24 | 24 | from sophios.utils_yaml import wic_loader |
25 | | -from sophios.post_compile import cwl_docker_extract |
| 25 | +from sophios.post_compile import cwl_docker_extract, remove_entrypoints |
26 | 26 | from sophios.wic_types import NodeData, StepId, Yaml, YamlTree, Json |
27 | 27 | from sophios.utils_graphs import get_graph_reps |
28 | 28 |
|
@@ -216,15 +216,8 @@ def run_workflows(yml_path_str: str, yml_path: Path, cwl_runner: str, args: argp |
216 | 216 | cwl_docker_extract(args, Path(yml_path).stem) |
217 | 217 | return |
218 | 218 |
|
219 | | - if args.docker_remove_entrypoints: |
220 | | - # Requires root, so guard behind CLI option |
221 | | - if args.container_engine == 'docker': |
222 | | - sophios.plugins.remove_entrypoints_docker() |
223 | | - if args.container_engine == 'podman': |
224 | | - sophios.plugins.remove_entrypoints_podman() |
225 | | - |
226 | | - rose_tree = sophios.plugins.dockerPull_append_noentrypoint_rosetree(rose_tree) |
227 | | - sophios.input_output.write_to_disk(rose_tree, Path('autogenerated/'), True, args.inputs_file) |
| 219 | + rose_tree = remove_entrypoints(args, rose_tree) |
| 220 | + sophios.input_output.write_to_disk(rose_tree, Path('autogenerated/'), True, args.inputs_file) |
228 | 221 |
|
229 | 222 | if args.partial_failure_enable: |
230 | 223 | rose_tree = sophios.plugins.cwl_update_outputs_optional_rosetree(rose_tree) |
|
0 commit comments