How to set environment variables
INFO /opt/hostedtoolcache/Python/3.12.7/x64/bin/cwltool 3.1.20241112140730
INFO Resolved '../cwl/04-env/environment-variable.cwl' to 'file:///home/runner/work/how-to/how-to/cwl/04-env/environment-variable.cwl'
INFO [workflow ] start
INFO [workflow ] starting step step_curl
INFO [step step_curl] start
INFO [job step_curl] /tmp/da7kcfuv$ docker \
run \
-i \
--mount=type=bind,source=/tmp/da7kcfuv,target=/ICtoYM \
--mount=type=bind,source=/tmp/mk01s6yr,target=/tmp \
--workdir=/ICtoYM \
--read-only=true \
--log-driver=none \
--user=1001:127 \
--rm \
--cidfile=/tmp/jtjw0bma/20241211090657-428748.cid \
--env=TMPDIR=/tmp \
--env=HOME=/ICtoYM \
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/da7kcfuv/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 40133 0 --:--:-- --:--:-- --:--:-- 40301
INFO [job step_curl] completed success
INFO [step step_curl] start
INFO [job step_curl_2] /tmp/d1xe2np9$ docker \
run \
-i \
--mount=type=bind,source=/tmp/d1xe2np9,target=/ICtoYM \
--mount=type=bind,source=/tmp/s76i8u25,target=/tmp \
--workdir=/ICtoYM \
--read-only=true \
--log-driver=none \
--user=1001:127 \
--rm \
--cidfile=/tmp/gu066pem/20241211090658-441030.cid \
--env=TMPDIR=/tmp \
--env=HOME=/ICtoYM \
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/d1xe2np9/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 41436 0 --:--:-- --:--:-- --:--:-- 41453
INFO [job step_curl_2] completed success
INFO [step step_curl] start
INFO [job step_curl_3] /tmp/siqhhm2x$ docker \
run \
-i \
--mount=type=bind,source=/tmp/siqhhm2x,target=/ICtoYM \
--mount=type=bind,source=/tmp/qlzt2fy4,target=/tmp \
--workdir=/ICtoYM \
--read-only=true \
--log-driver=none \
--user=1001:127 \
--rm \
--cidfile=/tmp/6ucr97zk/20241211090659-452600.cid \
--env=TMPDIR=/tmp \
--env=HOME=/ICtoYM \
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/siqhhm2x/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 41186 0 --:--:-- --:--:-- --:--:-- 41284
INFO [job step_curl_3] completed success
INFO [step step_curl] completed success
INFO [workflow ] starting step step_stack
INFO [step step_stack] start
INFO [job step_stack] /tmp/crmscgdu$ docker \
run \
-i \
--mount=type=bind,source=/tmp/crmscgdu,target=/ICtoYM \
--mount=type=bind,source=/tmp/5y2j798b,target=/tmp \
--workdir=/ICtoYM \
--read-only=true \
--user=1001:127 \
--rm \
--cidfile=/tmp/yadkuwvf/20241211090700-477215.cid \
--env=TMPDIR=/tmp \
--env=HOME=/ICtoYM \
--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 \
rio \
stack \
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: 1260MiB
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/wtb7bedk$ docker \
run \
-i \
--mount=type=bind,source=/tmp/wtb7bedk,target=/ICtoYM \
--mount=type=bind,source=/tmp/g5abcv5q,target=/tmp \
--mount=type=bind,source=/tmp/crmscgdu/stacked.tif,target=/var/lib/cwl/stgc1b2192e-08ba-47dd-9e09-2a9d54360cfd/stacked.tif,readonly \
--workdir=/ICtoYM \
--read-only=true \
--user=1001:127 \
--rm \
--cidfile=/tmp/rath_s5o/20241211090726-411016.cid \
--env=TMPDIR=/tmp \
--env=HOME=/ICtoYM \
ghcr.io/eoap/how-to/how-to-container:1.1.0 \
rio \
color \
-j \
-1 \
--out-dtype \
uint8 \
/var/lib/cwl/stgc1b2192e-08ba-47dd-9e09-2a9d54360cfd/stacked.tif \
rgb.tif \
'gamma 3 0.95, sigmoidal rgb 35 0.13'
INFO [job step_color] Max memory used: 671MiB
INFO [job step_color] completed success
INFO [step step_color] completed success
INFO [workflow ] completed success
INFO Final process status is success