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
7ff66aa8
"L1/dockerfiles/vscode:/vscode.git/clone" did not exist on "0a669f09ef4e7a748b6a8e4e815c1fea91a8b41b"
Commit
7ff66aa8
authored
Feb 28, 2026
by
Zhang Xiaoli
Browse files
remove redundant modules
parent
6dae7ea8
Changes
189
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
0 additions
and
441 deletions
+0
-441
L1/dockerfiles/csst-cpic-l1/Dockerfile
L1/dockerfiles/csst-cpic-l1/Dockerfile
+0
-22
L1/dockerfiles/csst-cpic-l1/Makefile
L1/dockerfiles/csst-cpic-l1/Makefile
+0
-18
L1/dockerfiles/csst-cpic-l1/run.sh
L1/dockerfiles/csst-cpic-l1/run.sh
+0
-62
L1/dockerfiles/csst-cpic-l1/test/Makefile
L1/dockerfiles/csst-cpic-l1/test/Makefile
+0
-16
L1/dockerfiles/csst-cpic-l1/test/add_task.sh
L1/dockerfiles/csst-cpic-l1/test/add_task.sh
+0
-16
L1/dockerfiles/csst-cpic-l1/test/app.yaml
L1/dockerfiles/csst-cpic-l1/test/app.yaml
+0
-42
L1/dockerfiles/csst-cpic-l1/test/tencent.env
L1/dockerfiles/csst-cpic-l1/test/tencent.env
+0
-3
L1/dockerfiles/csst-cpic-l1/test/zjs-ztm.env
L1/dockerfiles/csst-cpic-l1/test/zjs-ztm.env
+0
-12
L1/dockerfiles/csst-cpic-l1/test/zjs.env
L1/dockerfiles/csst-cpic-l1/test/zjs.env
+0
-12
L1/dockerfiles/csst-hstdm-l1/Dockerfile
L1/dockerfiles/csst-hstdm-l1/Dockerfile
+0
-21
L1/dockerfiles/csst-hstdm-l1/Makefile
L1/dockerfiles/csst-hstdm-l1/Makefile
+0
-18
L1/dockerfiles/csst-hstdm-l1/run.sh
L1/dockerfiles/csst-hstdm-l1/run.sh
+0
-65
L1/dockerfiles/csst-hstdm-l1/test/Makefile
L1/dockerfiles/csst-hstdm-l1/test/Makefile
+0
-16
L1/dockerfiles/csst-hstdm-l1/test/add_task.sh
L1/dockerfiles/csst-hstdm-l1/test/add_task.sh
+0
-16
L1/dockerfiles/csst-hstdm-l1/test/app.yaml
L1/dockerfiles/csst-hstdm-l1/test/app.yaml
+0
-42
L1/dockerfiles/csst-hstdm-l1/test/tencent.env
L1/dockerfiles/csst-hstdm-l1/test/tencent.env
+0
-3
L1/dockerfiles/csst-hstdm-l1/test/zjs-ztm.env
L1/dockerfiles/csst-hstdm-l1/test/zjs-ztm.env
+0
-12
L1/dockerfiles/csst-hstdm-l1/test/zjs.env
L1/dockerfiles/csst-hstdm-l1/test/zjs.env
+0
-12
L1/dockerfiles/csst-hstdm-l2/Dockerfile
L1/dockerfiles/csst-hstdm-l2/Dockerfile
+0
-15
L1/dockerfiles/csst-hstdm-l2/Makefile
L1/dockerfiles/csst-hstdm-l2/Makefile
+0
-18
No files found.
L1/dockerfiles/csst-cpic-l1/Dockerfile
deleted
100644 → 0
View file @
6dae7ea8
FROM
csu-harbor.csst.nao:10443/csst/csst-cpic-l1:latest
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/
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-cpic-l1/Makefile
deleted
100644 → 0
View file @
6dae7ea8
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/cnic/csst-cpic-l1
TAG
?=
latest
all
:
build push dist
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-cpic-l1:
$(TAG)
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
push
:
docker push
$(IMAGE_NAME)
dist
:
ssh sc1 docker pull
$(IMAGE_NAME)
ssh sc2 docker pull
$(IMAGE_NAME)
ssh sc3 docker pull
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
scp
:
scp
-r
./ csst-csu:/root/csst/csst-cpic-l1/
\ No newline at end of file
L1/dockerfiles/csst-cpic-l1/run.sh
deleted
100644 → 0
View file @
6dae7ea8
#!/bin/bash
message
=
$1
echo
"message: "
$message
headers
=
$(
echo
"
$2
"
|
sed
's/\\//g'
)
echo
"
$headers
"
| jq
'.'
echo
"headers:
$headers
"
has_data_list
=
$(
echo
"
$headers
"
| jq
'has("data_list")'
)
if
[
"
$has_data_list
"
=
"true"
]
;
then
# 提取 data_list 字段的值
data_list
=
$(
echo
"
$headers
"
| jq
-r
'.data_list'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
cd
/pipeline/output/
# python /pipeline/app/run.py $message
run
-p
$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 cpic."
exit
$exit_code
else
echo
"finish cpic, exit_code:
$exit_code
"
fi
exit
$exit_code
L1/dockerfiles/csst-cpic-l1/test/Makefile
deleted
100644 → 0
View file @
6dae7ea8
CLUSTER
=
csst
all
:
reset build
run
:
scalebox app create
--env-file
zjs.env
reset
:
cd
${HOME}
/docker-scalebox/clusters/
$(CLUSTER)
&&
make
&&
cd
-
down
:
make
-C
${HOME}
/docker-scalebox/clusters/
$(CLUSTER)
down
list
:
make
-C
${HOME}
/docker-scalebox/clusters/
$(CLUSTER)
list
L1/dockerfiles/csst-cpic-l1/test/add_task.sh
deleted
100644 → 0
View file @
6dae7ea8
#!/bin/bash
POSTGRES_USER
=
scalebox
POSTGRES_HOST
=
localhost
POSTGRES_DB
=
scalebox
PGPORT
=
5432
job_id
=
$1
for
m
in
{
41000000101..41000000104
}
;
do
echo
$m
docker
exec
-t
database psql
-U
${
POSTGRES_USER
}
-h
${
POSTGRES_HOST
}
-d
${
POSTGRES_DB
}
-p
${
PGPORT
}
\
-c
"INSERT INTO t_task(job,key_message) VALUES(
${
job_id
}
,'
${
m
}
')"
done
L1/dockerfiles/csst-cpic-l1/test/app.yaml
deleted
100644 → 0
View file @
6dae7ea8
name
:
cpic-l1.app.process
label
:
星冕仪
comment
:
精测模块星冕仪一级流水线
cluster
:
csst
parameters
:
initial_status
:
RUNNING
jobs
:
cpic-l1
:
label
:
星冕仪
base_image
:
cnic/csst-cpic-l1
schedule_mode
:
HEAD
variables
:
always_running
:
yes
reserved_on_exit
:
yes
output_text_size
:
100000
text_tranc_mode
:
TAIL
locale_mode
:
NONE
parameters
:
# start_message: 41000000101
key_group_regex
:
^(.{6})(.{3})$
key_group_seq
:
1,2
environments
:
-
CSST_DFS_API_MODE=${CSST_DFS_API_MODE}
-
CSST_DFS_GATEWAY=${CSST_DFS_GATEWAY}
-
CSST_DFS_APP_ID=${CSST_DFS_APP_ID}
-
CSST_DFS_APP_TOKEN=${CSST_DFS_APP_TOKEN}
-
CRDS_SERVER_URL=${CRDS_SERVER_URL}
paths
:
-
${CSST_AUX_DIR}:/pipeline/aux
-
${CSST_DFS_ROOT}:/dfsroot
-
${CSST_CRDS_REF}:/crdsref
# command: docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# sink_jobs:
# hosts:
# - h0:1
# - c0:1
# - c1:1
# - c2:1
L1/dockerfiles/csst-cpic-l1/test/tencent.env
deleted
100644 → 0
View file @
6dae7ea8
AUX_DIR=/goosefsx/x_c60_o19xp6c1_proxy/L1Pipeline/aux
CRDS_DIR=/goosefsx/x_c60_o19xp6c1_proxy/L1Pipeline/aux/products_ref20_3hdr
DFS_ROOT=/goosefsx/x_c60_o19xp6c1_proxy/dfs_root
L1/dockerfiles/csst-cpic-l1/test/zjs-ztm.env
deleted
100644 → 0
View file @
6dae7ea8
# DFS
CSST_DFS_API_MODE=cluster
CSST_DFS_GATEWAY=172.24.27.2:30880
CSST_DFS_APP_ID=test
CSST_DFS_APP_TOKEN=test
# CRDS
CRDS_SERVER_URL=http://172.24.27.2:29000
# VOLUMES ==================
CSST_DFS_ROOT=/share/dfs
CSST_CRDS_ROOT=/share/crdsdata/data
CSST_AUX_DIR=/share/pipeline/aux
L1/dockerfiles/csst-cpic-l1/test/zjs.env
deleted
100644 → 0
View file @
6dae7ea8
# DFS
CSST_DFS_API_MODE=cluster
CSST_DFS_GATEWAY=172.24.27.2:30880
CSST_DFS_APP_ID=test
CSST_DFS_APP_TOKEN=test
# CRDS
CRDS_SERVER_URL=http://172.24.27.2:29000
# VOLUMES ==================
CSST_DFS_ROOT=/sharewcl/dfs
CSST_CRDS_ROOT=/sharewcl/crdsdata/data/references
CSST_AUX_DIR=/sharewcl/pipeline/aux
L1/dockerfiles/csst-hstdm-l1/Dockerfile
deleted
100644 → 0
View file @
6dae7ea8
FROM
csu-harbor.csst.nao:10443/csst/csst-hstdm-l1:latest
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/
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-hstdm-l1/Makefile
deleted
100644 → 0
View file @
6dae7ea8
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/cnic/csst-hstdm-l1
TAG
?=
latest
all
:
build push dist
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-hstdm-l1:
$(TAG)
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
push
:
docker push
$(IMAGE_NAME)
dist
:
ssh sc1 docker pull
$(IMAGE_NAME)
ssh sc2 docker pull
$(IMAGE_NAME)
ssh sc3 docker pull
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
scp
:
scp
-r
./ csst-zjs:/root/csst/csst-hstdm-l1/
\ No newline at end of file
L1/dockerfiles/csst-hstdm-l1/run.sh
deleted
100644 → 0
View file @
6dae7ea8
#!/bin/bash
message
=
$1
echo
"message: "
$message
#headers=$2
headers
=
$(
echo
"
$2
"
|
sed
's/\\//g'
)
# 步骤2: 添加引号(如果引号缺失)
#fixed_msg=$(echo "$step1" | sed 's/\([a-f0-9]\{24\}\)/"\1"/g')
echo
"
$headers
"
| jq
'.'
echo
"headers:
$headers
"
has_data_list
=
$(
echo
"
$headers
"
| jq
'has("data_list")'
)
if
[
"
$has_data_list
"
=
"true"
]
;
then
# 提取 data_list 字段的值
data_list
=
$(
echo
"
$headers
"
| jq
-r
'.data_list'
)
fixed_data_list
=
$(
echo
"
$data_list
"
|
sed
's/\([a-f0-9]\{24\}\)/"\1"/g'
)
# 将 data_list 重新插入回 message
message
=
$(
echo
"
$message
"
| jq
--argjson
dl
"
$fixed_data_list
"
'. + {data_list: $dl}'
)
message
=
$(
echo
"
$message
"
| jq
-c
'.'
)
fi
cd
/pipeline/output/
# python /pipeline/app/run.py $message
run
-p
$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 "$1" > ${WORK_DIR}/messages.txt
echo
"finish hstdm-l1."
else
echo
"finish hstdm-l1, exit_code:
$exit_code
"
fi
exit
$exit_code
L1/dockerfiles/csst-hstdm-l1/test/Makefile
deleted
100644 → 0
View file @
6dae7ea8
CLUSTER
=
csst
all
:
reset build
run
:
scalebox app create
--env-file
zjs.env
reset
:
cd
${HOME}
/docker-scalebox/clusters/
$(CLUSTER)
&&
make
&&
cd
-
down
:
make
-C
${HOME}
/docker-scalebox/clusters/
$(CLUSTER)
down
list
:
make
-C
${HOME}
/docker-scalebox/clusters/
$(CLUSTER)
list
L1/dockerfiles/csst-hstdm-l1/test/add_task.sh
deleted
100644 → 0
View file @
6dae7ea8
#!/bin/bash
POSTGRES_USER
=
scalebox
POSTGRES_HOST
=
localhost
POSTGRES_DB
=
scalebox
PGPORT
=
5432
job_id
=
$1
for
m
in
{
50100000001..50100000002
}
;
do
echo
$m
docker
exec
-t
database psql
-U
${
POSTGRES_USER
}
-h
${
POSTGRES_HOST
}
-d
${
POSTGRES_DB
}
-p
${
PGPORT
}
\
-c
"INSERT INTO t_task(job,key_message) VALUES(
${
job_id
}
,'
${
m
}
')"
done
L1/dockerfiles/csst-hstdm-l1/test/app.yaml
deleted
100644 → 0
View file @
6dae7ea8
name
:
hstdm-l1.app.process
label
:
太赫兹
comment
:
太赫兹一级流水线
cluster
:
csst
parameters
:
initial_status
:
RUNNING
jobs
:
hstdm-l1
:
label
:
太赫兹
base_image
:
cnic/csst-hstdm-l1
schedule_mode
:
HEAD
variables
:
always_running
:
yes
reserved_on_exit
:
yes
output_text_size
:
100000
text_tranc_mode
:
TAIL
locale_mode
:
NONE
parameters
:
# start_message: 50100000001
key_group_regex
:
^(.{6})(.{3})$
key_group_seq
:
1,2
environments
:
-
CSST_DFS_API_MODE=${CSST_DFS_API_MODE}
-
CSST_DFS_GATEWAY=${CSST_DFS_GATEWAY}
-
CSST_DFS_APP_ID=${CSST_DFS_APP_ID}
-
CSST_DFS_APP_TOKEN=${CSST_DFS_APP_TOKEN}
-
CRDS_SERVER_URL=${CRDS_SERVER_URL}
paths
:
-
${CSST_AUX_DIR}:/pipeline/aux
-
${CSST_DFS_ROOT}:/dfsroot
-
${CSST_CRDS_ROOT}:/crdsref
# command: docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# sink_jobs:
# hosts:
# - h0:1
# - c0:1
# - c1:1
# - c2:1
L1/dockerfiles/csst-hstdm-l1/test/tencent.env
deleted
100644 → 0
View file @
6dae7ea8
AUX_DIR=/goosefsx/x_c60_o19xp6c1_proxy/L1Pipeline/aux
CRDS_DIR=/goosefsx/x_c60_o19xp6c1_proxy/L1Pipeline/aux/products_ref20_3hdr
DFS_ROOT=/goosefsx/x_c60_o19xp6c1_proxy/dfs_root
L1/dockerfiles/csst-hstdm-l1/test/zjs-ztm.env
deleted
100644 → 0
View file @
6dae7ea8
# DFS
CSST_DFS_API_MODE=cluster
CSST_DFS_GATEWAY=172.24.27.2:30880
CSST_DFS_APP_ID=test
CSST_DFS_APP_TOKEN=test
# CRDS
CRDS_SERVER_URL=http://172.24.27.2:29000
# VOLUMES ==================
CSST_DFS_ROOT=/share/dfs
CSST_CRDS_ROOT=/share/crdsdata/data
CSST_AUX_DIR=/share/pipeline/aux
L1/dockerfiles/csst-hstdm-l1/test/zjs.env
deleted
100644 → 0
View file @
6dae7ea8
# DFS
CSST_DFS_API_MODE=cluster
CSST_DFS_GATEWAY=172.24.27.2:30880
CSST_DFS_APP_ID=test
CSST_DFS_APP_TOKEN=test
# CRDS
CRDS_SERVER_URL=http://172.24.27.2:29000
# VOLUMES ==================
CSST_DFS_ROOT=/sharewcl/dfs
CSST_CRDS_ROOT=/sharewcl/crdsdata/data/references
CSST_AUX_DIR=/sharewcl/pipeline/aux
L1/dockerfiles/csst-hstdm-l2/Dockerfile
deleted
100644 → 0
View file @
6dae7ea8
FROM
csu-harbor.csst.nao:10443/csst/csst-hstdm-l2:latest
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-hstdm-l2/Makefile
deleted
100644 → 0
View file @
6dae7ea8
IMAGE_NAME
:=
csu-harbor.csst.nao:10443/cnic/csst-hstdm-l2
IMAGE_PATH
:=
/nfs/tmp/scalebox-images
all
:
build push dist
build
:
docker pull csu-harbor.csst.nao:10443/csst/csst-hstdm-l2
docker build
--network
=
host
-t
$(IMAGE_NAME)
.
push
:
docker push
$(IMAGE_NAME)
dist
:
ssh sc1 docker pull
$(IMAGE_NAME)
ssh sc2 docker pull
$(IMAGE_NAME)
ssh sc3 docker pull
$(IMAGE_NAME)
run
:
docker run
-it
--entrypoint
bash
$(IMAGE_NAME)
down
:
docker stop
$(IMAGE_NAME)
scp
:
scp
-r
./ csst-zjs:/root/csst/csst-hstdm-l2/
\ No newline at end of file
Prev
1
2
3
4
5
6
7
…
10
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