comparison env/lib/python3.9/site-packages/cwltool/udocker.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 """Enables Docker software containers via the udocker runtime."""
2
3 from typing import List
4
5 from .docker import DockerCommandLineJob
6
7
8 class UDockerCommandLineJob(DockerCommandLineJob):
9 """Runs a CommandLineJob in a sofware container using the udocker engine."""
10
11 @staticmethod
12 def append_volume(
13 runtime: List[str], source: str, target: str, writable: bool = False
14 ) -> None:
15 """Add binding arguments to the runtime list."""
16 runtime.append(
17 "--volume={}:{}:{}".format(source, target, "rw" if writable else "ro")
18 )