Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
csst
Scalebox Apps
Commits
46482d01
"L1/dockerfiles/csst-msc-l1-ooc/run.sh" did not exist on "a8f310b1f5013e9f2d6d5c0f9a60276e31f7abd9"
Commit
46482d01
authored
Oct 29, 2025
by
Zhang Xiaoli
Browse files
配置公有云镜像库
parent
35769c61
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
292 additions
and
27 deletions
+292
-27
L1/dockerfiles/csst-ifs-l1-qc0/Makefile
L1/dockerfiles/csst-ifs-l1-qc0/Makefile
+21
-0
L1/dockerfiles/csst-ifs-l1-qc0/run.sh
L1/dockerfiles/csst-ifs-l1-qc0/run.sh
+46
-0
L1/dockerfiles/csst-ifs-l1-rss/Makefile
L1/dockerfiles/csst-ifs-l1-rss/Makefile
+1
-1
L1/dockerfiles/csst-mci-l1/Makefile
L1/dockerfiles/csst-mci-l1/Makefile
+1
-1
L1/dockerfiles/csst-msc-l1-ast-sso-match/Dockerfile
L1/dockerfiles/csst-msc-l1-ast-sso-match/Dockerfile
+15
-0
L1/dockerfiles/csst-msc-l1-ast-sso-match/Makefile
L1/dockerfiles/csst-msc-l1-ast-sso-match/Makefile
+19
-0
L1/dockerfiles/csst-msc-l1-ast-sso-match/run.sh
L1/dockerfiles/csst-msc-l1-ast-sso-match/run.sh
+48
-0
L1/dockerfiles/csst-msc-l1-ast/Makefile
L1/dockerfiles/csst-msc-l1-ast/Makefile
+1
-1
L1/dockerfiles/csst-msc-l1-mbi-photmix/Makefile
L1/dockerfiles/csst-msc-l1-mbi-photmix/Makefile
+2
-2
L1/dockerfiles/csst-msc-l1-mbi/Dockerfile
L1/dockerfiles/csst-msc-l1-mbi/Dockerfile
+1
-1
L1/dockerfiles/csst-msc-l1-mbi/Makefile
L1/dockerfiles/csst-msc-l1-mbi/Makefile
+5
-5
L1/dockerfiles/csst-msc-l1-ooc/Dockerfile
L1/dockerfiles/csst-msc-l1-ooc/Dockerfile
+15
-0
L1/dockerfiles/csst-msc-l1-ooc/Makefile
L1/dockerfiles/csst-msc-l1-ooc/Makefile
+22
-0
L1/dockerfiles/csst-msc-l1-ooc/run.sh
L1/dockerfiles/csst-msc-l1-ooc/run.sh
+56
-0
L1/dockerfiles/csst-msc-l1-qc0/Dockerfile
L1/dockerfiles/csst-msc-l1-qc0/Dockerfile
+1
-1
L1/dockerfiles/csst-msc-l1-qc0/Makefile
L1/dockerfiles/csst-msc-l1-qc0/Makefile
+6
-2
L1/dockerfiles/csst-msc-l1-qc0/run.sh
L1/dockerfiles/csst-msc-l1-qc0/run.sh
+2
-2
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/Dockerfile
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/Dockerfile
+1
-1
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/Makefile
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/Makefile
+5
-2
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/run.sh
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/run.sh
+24
-8
No files found.
L1/dockerfiles/csst-ifs-l1-qc0/Makefile
0 → 100644
View file @
46482d01
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/cnic/csst-ifs-l1-qc0
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-ifs-l1-qc0
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
dist
:
build
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/ifs-l1-qc0.tar
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/ifs-l1-qc0.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/ifs-l1-qc0.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/ifs-l1-qc0.tar
push
:
docker push
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
scp
:
scp
-r
./ csst-csu:/root/csst/csst-ifs-l1-qc0/
\ No newline at end of file
L1/dockerfiles/csst-ifs-l1-qc0/run.sh
0 → 100644
View file @
46482d01
#!/bin/bash
message
=
$1
echo
"message: "
$message
cd
/pipeline/output/
python /pipeline/app/run.py
$message
exit_code
=
$?
echo
"=====pipeline.log===="
>
/work/custom-out.txt
cat
/pipeline/output/pipeline.log
>>
/work/custom-out.txt
echo
"======module.log======"
>>
/work/custom-out.txt
cat
/pipeline/output/module.log|tail
-n
100
>>
/work/custom-out.txt
timefile
=
/pipeline/output/timestamp.txt
if
test
-f
"
$timefile
"
;
then
echo
"
$timefile
exist"
mv
/pipeline/output/timestamp.txt /work/timestamps.txt
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
headers
=
$2
pattern
=
'"dag_run_id":"([^"]+)"'
if
[[
$headers
=
~
$pattern
]]
;
then
dag_run_id
=
"
${
BASH_REMATCH
[1]
}
"
echo
"dag_run_id:
$dag_run_id
"
else
# no dag_run_id in json
dag_run_id
=
""
fi
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
if
[
$exit_code
-eq
0
]
;
then
# scalebox task add --header dag_run_id=${dag_run_id} --header repeatable=yes --upsert ${message}
echo
"finish ifs-l1-qc0."
else
echo
"finish ifs-l1-qc0, exit_code:
$exit_code
"
fi
exit
$exit_code
L1/dockerfiles/csst-ifs-l1-rss/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-ifs-l1-rss
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-ifs-l1-rss
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
build
:
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-ifs-l1-rss
docker pull csu-harbor.csst.nao:10443/csst/csst-ifs-l1-rss
...
...
L1/dockerfiles/csst-mci-l1/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-mci-l1
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-mci-l1
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
build
:
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-mci-l1
docker pull csu-harbor.csst.nao:10443/csst/csst-mci-l1
...
...
L1/dockerfiles/csst-msc-l1-ast-sso-match/Dockerfile
0 → 100644
View file @
46482d01
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-sso-match
USER
root
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
RUN
mkdir
/work/
RUN
chown
-R
csst:csst /work
RUN
chown
-R
csst:csst /pipeline
WORKDIR
/work/
USER
csst
ENTRYPOINT
["goagent"]
L1/dockerfiles/csst-msc-l1-ast-sso-match/Makefile
0 → 100644
View file @
46482d01
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/cnic/csst-msc-l1-ast-sso-match
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-sso-match
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
dist
:
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/msc-l1-ast-sso.tar
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/msc-l1-ast-sso.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/msc-l1-ast-sso.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/msc-l1-ast-sso.tar
push
:
docker push
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
L1/dockerfiles/csst-msc-l1-ast-sso-match/run.sh
0 → 100644
View file @
46482d01
#!/bin/bash
#TRACE=yes 临时办法
rm
-rf
/work/
*
message
=
$1
echo
"message: "
$message
cd
/pipeline/output/
python /pipeline/app/run.py
$message
exit_code
=
$?
echo
"=====pipeline.log===="
>
/work/custom-out.txt
cat
/pipeline/output/pipeline.log
>>
/work/custom-out.txt
echo
"======module.log======"
>>
/work/custom-out.txt
cat
/pipeline/output/module.log|tail
-n
100
>>
/work/custom-out.txt
timefile
=
/pipeline/output/timestamp.txt
if
test
-f
"
$timefile
"
;
then
echo
"
$timefile
exist"
mv
/pipeline/output/timestamp.txt /work/timestamps.txt
fi
headers
=
$2
pattern
=
'"dag_run_id":"([^"]+)"'
if
[[
$headers
=
~
$pattern
]]
;
then
dag_run_id
=
"
${
BASH_REMATCH
[1]
}
"
echo
"dag_run_id:
$dag_run_id
"
else
# no dag_run_id in json
dag_run_id
=
""
fi
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
if
[
$exit_code
-eq
0
]
;
then
echo
finish ast-sso.
# scalebox task add $1
else
echo
"finish ast-sso, exit_code:
$exit_code
"
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
exit
$exit_code
L1/dockerfiles/csst-msc-l1-ast/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-msc-l1-ast-astrometry
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-msc-l1-ast-astrometry
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
build
:
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-astrometry
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-astrometry
...
...
L1/dockerfiles/csst-msc-l1-mbi-photmix/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-msc-l1-mbi-phot
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-msc-l1-mbi-phot
IMAGE_PATH
:=
/
nfs
/tmp/scalebox-images
IMAGE_PATH
:=
/
mnt
/tmp/scalebox-images
build
:
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-mbi-phot
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-mbi-phot
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
...
...
L1/dockerfiles/csst-msc-l1-mbi/Dockerfile
View file @
46482d01
FROM
csu
-harbor.csst.nao:10443/csst/csst-msc-l1-mbi
FROM
zjlab
-harbor.csst.nao:10443/csst/csst-msc-l1-mbi
USER
root
USER
root
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
...
...
L1/dockerfiles/csst-msc-l1-mbi/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-msc-l1-mbi
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-msc-l1-mbi
IMAGE_PATH
:=
/
nfs
/tmp/scalebox-images
IMAGE_PATH
:=
/
mnt
/tmp/scalebox-images
build
:
build
:
docker pull
csu
-harbor.csst.nao:10443/csst/csst-msc-l1-mbi
docker pull
zjlab
-harbor.csst.nao:10443/csst/csst-msc-l1-mbi
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
push
:
docker push
$(IMAGE_NAME)
dist
:
dist
:
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
...
@@ -10,8 +12,6 @@ dist:
...
@@ -10,8 +12,6 @@ dist:
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/msc-l1-mbi.tar
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/msc-l1-mbi.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/msc-l1-mbi.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/msc-l1-mbi.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/msc-l1-mbi.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/msc-l1-mbi.tar
push
:
docker push
$(IMAGE_NAME)
run
:
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
down
:
...
...
L1/dockerfiles/csst-msc-l1-ooc/Dockerfile
0 → 100644
View file @
46482d01
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-ooc
USER
root
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
RUN
mkdir
/work/
RUN
chown
-R
csst:csst /work
RUN
chown
-R
csst:csst /pipeline
WORKDIR
/work/
USER
csst
ENTRYPOINT
["goagent"]
L1/dockerfiles/csst-msc-l1-ooc/Makefile
0 → 100644
View file @
46482d01
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/cnic/csst-msc-l1-ooc
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-ooc
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
dist
:
build
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/msc-l1-ooc.tar
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/msc-l1-ooc.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/msc-l1-ooc.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/msc-l1-ooc.tar
push
:
docker push
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
scp
:
scp
-r
./ tencent-p0:/root/csst/csst-msc-l1-ooc/
save
:
docker save
$(IMAGE_NAME)
>
$(IMAGE_PATH)
/msc-l1-ooc.tar
L1/dockerfiles/csst-msc-l1-ooc/run.sh
0 → 100644
View file @
46482d01
#!/bin/bash
#TRACE=yes 临时办法
rm
-rf
/work/
*
message
=
$1
echo
"message: "
$message
cd
/pipeline/output/
python /pipeline/app/run.py
$message
exit_code
=
$?
echo
"=====pipeline.log===="
>
/work/custom-out.txt
cat
/pipeline/output/pipeline.log
>>
/work/custom-out.txt
echo
"======module.log======"
>>
/work/custom-out.txt
cat
/pipeline/output/module.log|tail
-n
100
>>
/work/custom-out.txt
timefile
=
/pipeline/output/timestamps.txt
if
test
-f
"
$timefile
"
;
then
echo
"
$timefile
exist"
mv
/pipeline/output/timestamps.txt /work/timestamps.txt
fi
headers
=
$2
pattern
=
'"dag_run_id":"([^"]+)"'
if
[[
$headers
=
~
$pattern
]]
;
then
dag_run_id
=
"
${
BASH_REMATCH
[1]
}
"
echo
"dag_run_id:
$dag_run_id
"
else
# no dag_run_id in json
dag_run_id
=
""
fi
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
# pattern='"sorted_tag":"([^"]+)"'
# if [[ $headers =~ $pattern ]]; then
# sorted_tag="${BASH_REMATCH[1]}"
# echo "sorted_tag: $sorted_tag"
# else
# # no sorted_tag in json
# sorted_tag=1
# fi
if
[
$exit_code
-eq
0
]
;
then
echo
"finish ooc."
# scalebox task add --header sorted_tag=${sorted_tag} --header dag_run_id=${dag_run_id} --header repeatable=yes --upsert ${message}
else
echo
"finish ooc, exit_code:
$exit_code
"
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
exit
$exit_code
L1/dockerfiles/csst-msc-l1-qc0/Dockerfile
View file @
46482d01
FROM
zjlab
-harbor.csst.nao/csst/csst-msc-l1-qc0
FROM
csu
-harbor.csst.nao
:10443
/csst/csst-msc-l1-qc0
USER
root
USER
root
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
...
...
L1/dockerfiles/csst-msc-l1-qc0/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-msc-l1-qc0
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-msc-l1-qc0
IMAGE_PATH
:=
/
data
/scalebox
/tmp
IMAGE_PATH
:=
/
nfs/tmp
/scalebox
-images
build
:
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-msc-l1-qc0
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
dist
:
dist
:
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/msc-l1-qc0.tar
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/msc-l1-qc0.tar
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/msc-l1-qc0.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/msc-l1-qc0.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/msc-l1-qc0.tar
push
:
push
:
docker push
$(IMAGE_NAME)
docker push
$(IMAGE_NAME)
run
:
run
:
...
...
L1/dockerfiles/csst-msc-l1-qc0/run.sh
View file @
46482d01
...
@@ -37,8 +37,8 @@ fi
...
@@ -37,8 +37,8 @@ fi
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
if
[
$exit_code
-eq
0
]
;
then
if
[
$exit_code
-eq
0
]
;
then
scalebox task add
--header
dag_run_id
=
${
dag_run_id
}
--header
repeatable
=
yes
--upsert
${
message
}
#
scalebox task add --header dag_run_id=${dag_run_id} --header repeatable=yes --upsert ${message}
echo
"finish qc0
, start sink-job
."
echo
"finish qc0."
else
else
echo
"finish qc0, exit_code:
$exit_code
"
echo
"finish qc0, exit_code:
$exit_code
"
fi
fi
...
...
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/Dockerfile
View file @
46482d01
FROM
10.3.10.10:811
3/csst/csst-msc-l1-sls-extraction-zero
FROM
csu-harbor.csst.nao:1044
3/csst/csst-msc-l1-sls-extraction-zero
USER
root
USER
root
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
...
...
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/Makefile
View file @
46482d01
IMAGE_NAME
:=
cnic/csst-msc-l1-sls-extraction-zero
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/
cnic/csst-msc-l1-sls-extraction-zero
IMAGE_PATH
:=
/nfs
data
/tmp
IMAGE_PATH
:=
/nfs/tmp
/scalebox-images
build
:
build
:
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
dist
:
dist
:
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
#docker save $(IMAGE_NAME) | zstdmt | pv | ssh c0 'zstd -d | docker load'
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/msc-l1-sls-extraction-zero.tar
docker
save
$(IMAGE_NAME)
>
$(IMAGE_PATH)/msc-l1-sls-extraction-zero.tar
ssh
sc1
docker
load
-i
$(IMAGE_PATH)/msc-l1-sls-extraction-zero.tar
ssh
sc2
docker
load
-i
$(IMAGE_PATH)/msc-l1-sls-extraction-zero.tar
ssh
sc3
docker
load
-i
$(IMAGE_PATH)/msc-l1-sls-extraction-zero.tar
push
:
push
:
docker push
$(IMAGE_NAME)
docker push
$(IMAGE_NAME)
run
:
run
:
...
...
L1/dockerfiles/csst-msc-l1-sls-extraction-zero/run.sh
View file @
46482d01
#!/bin/bash
#!/bin/bash
# obsid 10160000000 - 10160000136
#TRACE=yes 临时办法
arr
=(
$(
echo
$1
|
tr
"-"
" "
)
)
rm
-rf
/work/
*
obsid
=
"
${
arr
[0]
}
"
detector
=
"
${
arr
[1]
}
"
message
=
$1
echo
"obsid: "
$obsid
echo
"message: "
$message
echo
"detector: "
$detector
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$obsid
$detector
python /pipeline/app/run.py
$obsid
$detector
...
@@ -26,8 +25,25 @@ if test -f "$timefile"; then
...
@@ -26,8 +25,25 @@ if test -f "$timefile"; then
mv
/pipeline/output/timestamp.txt /work/timestamps.txt
mv
/pipeline/output/timestamp.txt /work/timestamps.txt
fi
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
echo
finish sls-extraction-zero.
headers
=
$2
pattern
=
'"dag_run_id":"([^"]+)"'
if
[[
$headers
=
~
$pattern
]]
;
then
dag_run_id
=
"
${
BASH_REMATCH
[1]
}
"
echo
"dag_run_id:
$dag_run_id
"
else
# no dag_run_id in json
dag_run_id
=
""
fi
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
if
[
$exit_code
-eq
0
]
;
then
echo
finish sls-extraction-zero.
# scalebox task add $1
else
echo
"finish sls-extraction-zero, exit_code:
$exit_code
"
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
exit
$exit_code
exit
$exit_code
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment