File tree Expand file tree Collapse file tree 3 files changed +29
-6
lines changed Expand file tree Collapse file tree 3 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ $ cwl-runner docker.cwl docker-job.yml
53
53
-i \
54
54
--volume=/tmp/tmpgugLND:/var/spool/cwl:rw \
55
55
--volume=/tmp/tmpSs5JoN:/tmp:rw \
56
- --volume=/home/me/cwl/user_guide/hello.js:/var/lib/cwl/stg16848d97-e6ba-4b35-b666-4546d9965a2d /hello.js:ro \
56
+ --volume=/home/me/cwl/user_guide/hello.js:/var/lib/cwl/job369354770_examples /hello.js:ro \
57
57
--workdir=/var/spool/cwl \
58
58
--read-only=true \
59
59
--user=1000 \
@@ -62,11 +62,21 @@ $ cwl-runner docker.cwl docker-job.yml
62
62
--env=HOME=/var/spool/cwl \
63
63
node:slim \
64
64
node \
65
- /var/lib/cwl/stg16848d97-e6ba-4b35-b666-4546d9965a2d/hello.js
66
- Hello World
65
+ /var/lib/cwl/job369354770_examples/hello.js > /tmp/tmpgugLND/output.txt
67
66
[job docker.cwl] completed success
68
- {}
67
+ {
68
+ "output": {
69
+ "location": "file:///home/me/cwl/user_guide/output.txt",
70
+ "basename": "output.txt",
71
+ "class": "File",
72
+ "checksum": "sha1$648a6a6ffffdaa0badb23b8baf90b6168dd16b3a",
73
+ "size": 12,
74
+ "path": "/home/me/cwl/user_guide/output.txt"
75
+ }
76
+ }
69
77
Final process status is success
78
+ $ cat output.txt
79
+ Hello World
70
80
~~~
71
81
{: .output}
72
82
Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ inputs:
11
11
type : File
12
12
inputBinding :
13
13
position : 1
14
- outputs : []
14
+ outputs :
15
+ output:
16
+ type : stdout
17
+ stdout : output.txt
Original file line number Diff line number Diff line change 48
48
location : Any
49
49
size : 0
50
50
51
- # Section 7 depends on side-effects
51
+ # Section 7
52
+ - doc : Test for section 7
53
+ job : 07-containers/docker-job.yml
54
+ tool : 07-containers/docker.cwl
55
+ output :
56
+ output :
57
+ class : File
58
+ checksum : sha1$648a6a6ffffdaa0badb23b8baf90b6168dd16b3a
59
+ basename : output.txt
60
+ location : Any
61
+ size : 12
52
62
53
63
# Section 8
54
64
- doc : Test for section 8
You can’t perform that action at this time.
0 commit comments