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
71f259d1
Commit
71f259d1
authored
Nov 11, 2025
by
Zhang Xiaoli
Browse files
解决jq命令不存在问题、json字符串格式问题.
parent
1f1cdb42
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
69 additions
and
0 deletions
+69
-0
L1/dockerfiles/csst-cpic-l1-qc0/Dockerfile
L1/dockerfiles/csst-cpic-l1-qc0/Dockerfile
+6
-0
L1/dockerfiles/csst-cpic-l1-qc0/run.sh
L1/dockerfiles/csst-cpic-l1-qc0/run.sh
+1
-0
L1/dockerfiles/csst-cpic-l1/Dockerfile
L1/dockerfiles/csst-cpic-l1/Dockerfile
+6
-0
L1/dockerfiles/csst-cpic-l1/run.sh
L1/dockerfiles/csst-cpic-l1/run.sh
+1
-0
L1/dockerfiles/csst-hstdm-l1/Dockerfile
L1/dockerfiles/csst-hstdm-l1/Dockerfile
+6
-0
L1/dockerfiles/csst-hstdm-l1/run.sh
L1/dockerfiles/csst-hstdm-l1/run.sh
+1
-0
L1/dockerfiles/csst-ifs-l1-qc0/Dockerfile
L1/dockerfiles/csst-ifs-l1-qc0/Dockerfile
+6
-0
L1/dockerfiles/csst-ifs-l1-qc0/run.sh
L1/dockerfiles/csst-ifs-l1-qc0/run.sh
+1
-0
L1/dockerfiles/csst-ifs-l1-rss/Dockerfile
L1/dockerfiles/csst-ifs-l1-rss/Dockerfile
+5
-0
L1/dockerfiles/csst-ifs-l1-rss/run.sh
L1/dockerfiles/csst-ifs-l1-rss/run.sh
+1
-0
L1/dockerfiles/csst-mci-l1/Dockerfile
L1/dockerfiles/csst-mci-l1/Dockerfile
+6
-0
L1/dockerfiles/csst-mci-l1/run.sh
L1/dockerfiles/csst-mci-l1/run.sh
+1
-0
L1/dockerfiles/csst-msc-l1-ast-sso-match/Dockerfile
L1/dockerfiles/csst-msc-l1-ast-sso-match/Dockerfile
+6
-0
L1/dockerfiles/csst-msc-l1-ast-sso-match/run.sh
L1/dockerfiles/csst-msc-l1-ast-sso-match/run.sh
+1
-0
L1/dockerfiles/csst-msc-l1-ast/Dockerfile
L1/dockerfiles/csst-msc-l1-ast/Dockerfile
+6
-0
L1/dockerfiles/csst-msc-l1-ast/run.sh
L1/dockerfiles/csst-msc-l1-ast/run.sh
+1
-0
L1/dockerfiles/csst-msc-l1-mbi-photmix/Dockerfile
L1/dockerfiles/csst-msc-l1-mbi-photmix/Dockerfile
+6
-0
L1/dockerfiles/csst-msc-l1-mbi-photmix/run.sh
L1/dockerfiles/csst-msc-l1-mbi-photmix/run.sh
+1
-0
L1/dockerfiles/csst-msc-l1-mbi/Dockerfile
L1/dockerfiles/csst-msc-l1-mbi/Dockerfile
+6
-0
L1/dockerfiles/csst-msc-l1-mbi/run.sh
L1/dockerfiles/csst-msc-l1-mbi/run.sh
+1
-0
No files found.
L1/dockerfiles/csst-cpic-l1-qc0/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-cpic-l1-qc0:latest
FROM
csu-harbor.csst.nao:10443/csst/csst-cpic-l1-qc0:latest
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-cpic-l1-qc0/run.sh
View file @
71f259d1
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$message
python /pipeline/app/run.py
$message
...
...
L1/dockerfiles/csst-cpic-l1/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-cpic-l1:latest
FROM
csu-harbor.csst.nao:10443/csst/csst-cpic-l1:latest
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-cpic-l1/run.sh
View file @
71f259d1
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$message
python /pipeline/app/run.py
$message
...
...
L1/dockerfiles/csst-hstdm-l1/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-hstdm-l1:latest
FROM
csu-harbor.csst.nao:10443/csst/csst-hstdm-l1:latest
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-hstdm-l1/run.sh
View file @
71f259d1
...
@@ -17,6 +17,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -17,6 +17,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
...
...
L1/dockerfiles/csst-ifs-l1-qc0/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-ifs-l1-qc0:latest
FROM
csu-harbor.csst.nao:10443/csst/csst-ifs-l1-qc0:latest
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-ifs-l1-qc0/run.sh
View file @
71f259d1
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$message
python /pipeline/app/run.py
$message
...
...
L1/dockerfiles/csst-ifs-l1-rss/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-ifs-l1-rss:latest
FROM
csu-harbor.csst.nao:10443/csst/csst-ifs-l1-rss:latest
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-ifs-l1-rss/run.sh
View file @
71f259d1
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$message
python /pipeline/app/run.py
$message
...
...
L1/dockerfiles/csst-mci-l1/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-mci-l1:latest
FROM
csu-harbor.csst.nao:10443/csst/csst-mci-l1:latest
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-mci-l1/run.sh
View file @
71f259d1
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -15,6 +15,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$message
python /pipeline/app/run.py
$message
...
...
L1/dockerfiles/csst-msc-l1-ast-sso-match/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-sso-match
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-sso-match
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-msc-l1-ast-sso-match/run.sh
View file @
71f259d1
...
@@ -18,6 +18,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -18,6 +18,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
...
...
L1/dockerfiles/csst-msc-l1-ast/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-astrometry
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-ast-astrometry
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-msc-l1-ast/run.sh
View file @
71f259d1
...
@@ -19,6 +19,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -19,6 +19,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
...
...
L1/dockerfiles/csst-msc-l1-mbi-photmix/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-mbi-phot
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-mbi-phot
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-msc-l1-mbi-photmix/run.sh
View file @
71f259d1
...
@@ -18,6 +18,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -18,6 +18,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
python /pipeline/app/run.py
$message
python /pipeline/app/run.py
$message
...
...
L1/dockerfiles/csst-msc-l1-mbi/Dockerfile
View file @
71f259d1
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-mbi
FROM
csu-harbor.csst.nao:10443/csst/csst-msc-l1-mbi
USER
root
USER
root
# 安装jq
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
jq
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
run.sh /app/bin/
COPY
run.sh /app/bin/
RUN
chmod
+x /app/bin/run.sh
RUN
chmod
+x /app/bin/run.sh
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
COPY
--from=hub.cstcloud.cn/scalebox/agent /usr/local /usr/local
...
...
L1/dockerfiles/csst-msc-l1-mbi/run.sh
View file @
71f259d1
...
@@ -18,6 +18,7 @@ if [ "$has_data_list" = "true" ]; then
...
@@ -18,6 +18,7 @@ if [ "$has_data_list" = "true" ]; then
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
fi
cd
/pipeline/output/
cd
/pipeline/output/
...
...
Prev
1
2
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