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
5353 -i \
5454 --volume=/tmp/tmpgugLND:/var/spool/cwl:rw \
5555 --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 \
5757 --workdir=/var/spool/cwl \
5858 --read-only=true \
5959 --user=1000 \
@@ -62,11 +62,21 @@ $ cwl-runner docker.cwl docker-job.yml
6262 --env=HOME=/var/spool/cwl \
6363 node:slim \
6464 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
6766[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+ }
6977Final process status is success
78+ $ cat output.txt
79+ Hello World
7080~~~
7181{: .output}
7282
Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ inputs:
1111 type : File
1212 inputBinding :
1313 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 4848 location : Any
4949 size : 0
5050
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
5262
5363# Section 8
5464- doc : Test for section 8
You can’t perform that action at this time.
0 commit comments