How to create conditional workflows
INFO /opt/hostedtoolcache/Python/3.12.7/x64/bin/cwltool 3.1.20241112140730
INFO Resolved '../cwl/08-conditional-workflows/conditional-workflows.cwl' to 'file:///home/runner/work/how-to/how-to/cwl/08-conditional-workflows/conditional-workflows.cwl'
INFO [workflow ] start
INFO [workflow ] starting step step_curl
INFO [step step_curl] start
INFO [job step_curl] /tmp/0wd8jp4t$ docker \
run \
-i \
--mount=type=bind,source=/tmp/0wd8jp4t,target=/dtzewR \
--mount=type=bind,source=/tmp/km_dxzd9,target=/tmp \
--workdir=/dtzewR \
--read-only=true \
--log-driver=none \
--user=1001:127 \
--rm \
--cidfile=/tmp/oytte144/20241211090606-758755.cid \
--env=TMPDIR=/tmp \
--env=HOME=/dtzewR \
docker.io/curlimages/curl:latest \
curl \
https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2B_53HPA_20210723_0_L2A > /tmp/0wd8jp4t/message
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10156 100 10156 0 0 44515 0 --:--:-- --:--:-- --:--:-- 44349
INFO [job step_curl] completed success
INFO [step step_curl] start
INFO [job step_curl_2] /tmp/uzfdbz1m$ docker \
run \
-i \
--mount=type=bind,source=/tmp/uzfdbz1m,target=/dtzewR \
--mount=type=bind,source=/tmp/n1o9axc7,target=/tmp \
--workdir=/dtzewR \
--read-only=true \
--log-driver=none \
--user=1001:127 \
--rm \
--cidfile=/tmp/6bbsvwra/20241211090607-769794.cid \
--env=TMPDIR=/tmp \
--env=HOME=/dtzewR \
docker.io/curlimages/curl:latest \
curl \
https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2B_53HPA_20210723_0_L2A > /tmp/uzfdbz1m/message
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10156 100 10156 0 0 40292 0 --:--:-- --:--:-- --:--:-- 40462
INFO [job step_curl_2] completed success
INFO [step step_curl] start
INFO [job step_curl_3] /tmp/jr11cm_6$ docker \
run \
-i \
--mount=type=bind,source=/tmp/jr11cm_6,target=/dtzewR \
--mount=type=bind,source=/tmp/_v9x52cj,target=/tmp \
--workdir=/dtzewR \
--read-only=true \
--log-driver=none \
--user=1001:127 \
--rm \
--cidfile=/tmp/kig17x03/20241211090608-780858.cid \
--env=TMPDIR=/tmp \
--env=HOME=/dtzewR \
docker.io/curlimages/curl:latest \
curl \
https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2B_53HPA_20210723_0_L2A > /tmp/jr11cm_6/message
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10156 100 10156 0 0 54770 0 --:--:-- --:--:-- --:--:-- 54897
INFO [job step_curl_3] completed success
INFO [step step_curl] completed success
INFO [workflow ] starting step step_warp_stack
INFO [step step_warp_stack] will be skipped
INFO [step step_warp_stack] completed skipped
INFO [workflow ] starting step step_stack
INFO [step step_stack] start
INFO [job step_stack] /tmp/dz2ceghq$ docker \
run \
-i \
--mount=type=bind,source=/tmp/dz2ceghq,target=/dtzewR \
--mount=type=bind,source=/tmp/lu3qx0k1,target=/tmp \
--workdir=/dtzewR \
--read-only=true \
--user=1001:127 \
--rm \
--cidfile=/tmp/65harvdj/20241211090609-810269.cid \
--env=TMPDIR=/tmp \
--env=HOME=/dtzewR \
--env=CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif \
--env=GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES \
--env=GDAL_TIFF_INTERNAL_MASK=YES \
ghcr.io/eoap/how-to/how-to-container:1.1.0 \
/bin/bash \
run.sh \
https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/53/H/PA/2021/7/S2B_53HPA_20210723_0_L2A/B04.tif \
https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/53/H/PA/2021/7/S2B_53HPA_20210723_0_L2A/B03.tif \
https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/53/H/PA/2021/7/S2B_53HPA_20210723_0_L2A/B02.tif \
stacked.tif
INFO [job step_stack] Max memory used: 1257MiB
INFO [job step_stack] completed success
INFO [step step_stack] completed success
INFO [workflow ] starting step step_color
INFO [step step_color] start
INFO [job step_color] /tmp/o1xfqa_q$ docker \
run \
-i \
--mount=type=bind,source=/tmp/o1xfqa_q,target=/dtzewR \
--mount=type=bind,source=/tmp/vk64xnzt,target=/tmp \
--mount=type=bind,source=/tmp/dz2ceghq/stacked.tif,target=/var/lib/cwl/stgd5f4bb2d-d546-4df2-be41-d028c7f7426f/stacked.tif,readonly \
--workdir=/dtzewR \
--read-only=true \
--user=1001:127 \
--rm \
--cidfile=/tmp/450yza_6/20241211090642-612319.cid \
--env=TMPDIR=/tmp \
--env=HOME=/dtzewR \
ghcr.io/eoap/how-to/how-to-container:1.1.0 \
/bin/bash \
run.sh \
/var/lib/cwl/stgd5f4bb2d-d546-4df2-be41-d028c7f7426f/stacked.tif
INFO [job step_color] Max memory used: 727MiB
INFO [job step_color] completed success
INFO [step step_color] completed success
INFO [workflow ] completed success
INFO Final process status is success
{
"rgb-tif": {
"location": "file:///home/runner/work/how-to/how-to/docs/rgb.tif",
"basename": "rgb.tif",
"class": "File",
"checksum": "sha1$2ae9a4d26b70dcac93806f99b792bf0e4d28c74a",
"size": 361747464,
"path": "/home/runner/work/how-to/how-to/docs/rgb.tif"
},
"stack": {
"location": "file:///home/runner/work/how-to/how-to/docs/stacked.tif",
"basename": "stacked.tif",
"class": "File",
"checksum": "sha1$a9fcfcac28c669f3714eaa4cc59858a28f1e715b",
"size": 723450636,
"path": "/home/runner/work/how-to/how-to/docs/stacked.tif"
}
}