Skip to content

Commit

Permalink
Merge pull request #721 from djarecka/env
Browse files Browse the repository at this point in the history
small fix
  • Loading branch information
djarecka authored Nov 15, 2023
2 parents 73e6856 + d1793cb commit 89c1e27
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pydra/engine/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ def execute(self, task):
# mounting all input locations
mounts = task.get_bindings(root=self.root)

# todo adding xargsy etc
docker_args = [
"docker",
"run",
"-v",
self.bind(task.cache_dir, "rw", self.root),
self.bind(task.cache_dir, "rw"),
*self.xargs,
]
docker_args.extend(
Expand Down Expand Up @@ -134,9 +133,9 @@ def execute(self, task):
"singularity",
"exec",
"-B",
self.bind(task.cache_dir, "rw", self.root),
self.bind(task.cache_dir, "rw"),
*self.xargs,
]
singularity_args.extend(self.xargs)
singularity_args.extend(
" ".join(
[f"-B {key}:{val[0]}:{val[1]}" for (key, val) in mounts.items()]
Expand Down

0 comments on commit 89c1e27

Please sign in to comment.