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
40552bd8
Commit
40552bd8
authored
2 years ago
by
zxl
Browse files
Options
Download
Email Patches
Plain Diff
替换shell命令为go命令
替换shell命令为go命令 Replace the shell command with the go command
parent
bc38ffa8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
28 deletions
+44
-28
L2/dockerfiles/admL2/Dockerfile
L2/dockerfiles/admL2/Dockerfile
+2
-2
L2/pipelines/Makefile
L2/pipelines/Makefile
+1
-1
L2/pipelines/app.yaml
L2/pipelines/app.yaml
+41
-25
No files found.
L2/dockerfiles/admL2/Dockerfile
View file @
40552bd8
...
@@ -22,5 +22,5 @@ RUN cd /app/bin/ \
...
@@ -22,5 +22,5 @@ RUN cd /app/bin/ \
&&
mkdir
controld
\
&&
mkdir
controld
\
&&
python3
-m
grpc_tools.protoc
--python_out
=
.
--grpc_python_out
=
.
-I
.
control.proto
-I
=
control
&&
python3
-m
grpc_tools.protoc
--python_out
=
.
--grpc_python_out
=
.
-I
.
control.proto
-I
=
control
ENV
CSST_ADML2_JOB_ID="12" \
ENV
CSST_ADML2_JOB_ID="3" \
CSST_PIPELINE_GRPC_SERVER="10.255.2.11:50051"
CSST_PIPELINE_GRPC_SERVER="122.96.144.152:39092"
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
L2/pipelines/Makefile
View file @
40552bd8
...
@@ -10,7 +10,7 @@ up-app:
...
@@ -10,7 +10,7 @@ up-app:
parse
:
parse
:
CLUSTER
=
$(CLUSTER)
\
CLUSTER
=
$(CLUSTER)
\
${HOME}
/docker-scalebox/bin/parse.sh
app.yaml
scalebox app create
app.yaml
start
:
start
:
docker run
-it
--rm
--network
host
-e
JOB_ID
=
17
-e
GRPC_SERVER
=
localhost:50051 hub.cstcloud.cn/scalebox/base bash
-c
' send-job-message filelist . '
docker run
-it
--rm
--network
host
-e
JOB_ID
=
17
-e
GRPC_SERVER
=
localhost:50051 hub.cstcloud.cn/scalebox/base bash
-c
' send-job-message filelist . '
...
...
This diff is collapsed.
Click to expand it.
L2/pipelines/app.yaml
View file @
40552bd8
name
:
csst
-1
.app.process
name
:
csst.app.process
label
:
csst-admin
L1
label
:
csst-admin
output_basedir
:
/data/csst-admin
L1
output_basedir
:
/data/csst-admin
cluster
:
csst
cluster
:
csst
parameters
:
initial_status
:
RUNNING
jobs
:
jobs
:
admL
1
:
admL
2
:
label
:
admin管理模块
1
label
:
admin管理模块
base_image
:
hub.cstcloud.cn/csst/adml
1
:dev
base_image
:
hub.cstcloud.cn/csst/adml
2
:dev
type
:
LONG-RUN-JOB
type
:
LONG-RUN-JOB
schedule_mode
:
HEAD
schedule_mode
:
HEAD
#parameters:
# start_message: brickid,name1,name2
## key_example: Dec+5841_09_04/20200817
## key_example: Dec+5841_09_04/20200817
key_group_regex
:
^(Dec.+/[0-9]+)$
key_group_regex
:
^(Dec.+/[0-9]+)$
#
environments:
#
environments:
# - RSYNC_SRC=scalebox@159.226.237.136
# - RSYNC_SRC=scalebox@159.226.237.136
#
- ROOT_PATH=${ROOT_PATH}
#
- ROOT_PATH=${ROOT_PATH}
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
sink_jobs
:
sink_jobs
:
-
module1
-
name1
#- module2
-
name2
module1
:
# - name3
name1
:
label
:
模块一
label
:
模块一
base_image
:
hub.cstcloud.cn/csst/
modul
e1:dev
base_image
:
hub.cstcloud.cn/csst/
nam
e1:dev
type
:
LONG-RUN-JOB
type
:
LONG-RUN-JOB
schedule_mode
:
HEAD
schedule_mode
:
HEAD
## key_example: Dec+5841_09_04/20200817
## key_example: Dec+5841_09_04/20200817
key_group_regex
:
^(Dec.+/[0-9]+)$
key_group_regex
:
^(Dec.+/[0-9]+)$
# paths:
# environments:
# - ${ROOT_PATH}:${ROOT_PATH}:ro
# environments:
# - RSYNC_SRC=scalebox@159.226.237.136
# - RSYNC_SRC=scalebox@159.226.237.136
#
- ROOT_PATH=${ROOT_PATH}
#
- ROOT_PATH=${ROOT_PATH}
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# sink_jobs:
sink_jobs
:
# - admL1
-
admL2
# module2:
name2
:
# label: 模块二
label
:
模块二
# base_image: hub.cstcloud.cn/csst/module2:dev
base_image
:
hub.cstcloud.cn/csst/name2:dev
type
:
LONG-RUN-JOB
schedule_mode
:
HEAD
## key_example: Dec+5841_09_04/20200817
key_group_regex
:
^(Dec.+/[0-9]+)$
# environments:
# - RSYNC_SRC=scalebox@159.226.237.136
# - ROOT_PATH=${ROOT_PATH}
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
sink_jobs
:
-
admL2
# name3:
# label: 模块三
# #base_image: hub.cstcloud.cn/csst/name3
# type: LONG-RUN-JOB
# type: LONG-RUN-JOB
# schedule_mode: HEAD
# schedule_mode: HEAD
# ## key_example: Dec+5841_09_04/20200817
# ## key_example: Dec+5841_09_04/20200817
...
@@ -48,8 +65,7 @@ jobs:
...
@@ -48,8 +65,7 @@ jobs:
# # - RSYNC_SRC=scalebox@159.226.237.136
# # - RSYNC_SRC=scalebox@159.226.237.136
# - ROOT_PATH=${ROOT_PATH}
# - ROOT_PATH=${ROOT_PATH}
# # - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
# # - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
# command: docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# # command: docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# # sink_jobs:
# sink_jobs:
# # - admL1
# - admL2
This diff is collapsed.
Click to expand it.
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