Skip to content
Snippets Groups Projects
Commit 6c15b9b6 authored by Pau Andrio's avatar Pau Andrio
Browse files

create_cmd_line adding '-e' option in singularity execution to clean the env

parent f436c7a5
No related branches found
Tags pmx1.0
No related merge requests found
Pipeline #15730 failed with stages
in 21 seconds
......@@ -431,7 +431,7 @@ def create_cmd_line(cmd, container_path='', host_volume=None, container_volume=N
container_path = container_path or ''
if container_path.endswith('singularity'):
log('Using Singularity image %s' % container_image, out_log, global_log)
singularity_cmd = [container_path, 'exec', '--bind', host_volume + ':' + container_volume, container_image]
singularity_cmd = [container_path, 'exec', '-e', '--bind', host_volume + ':' + container_volume, container_image]
cmd = ['"' + " ".join(cmd) + '"']
singularity_cmd.extend([container_shell_path, '-c'])
return singularity_cmd + cmd
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment