Commit 40552bd8 authored by zxl's avatar zxl
Browse files

替换shell命令为go命令

替换shell命令为go命令
Replace the shell command with the go command
parent bc38ffa8
...@@ -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
...@@ -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 . '
......
name: csst-1.app.process name: csst.app.process
label: csst-adminL1 label: csst-admin
output_basedir: /data/csst-adminL1 output_basedir: /data/csst-admin
cluster: csst cluster: csst
parameters:
initial_status: RUNNING
jobs: jobs:
admL1: admL2:
label: admin管理模块1 label: admin管理模块
base_image: hub.cstcloud.cn/csst/adml1:dev base_image: hub.cstcloud.cn/csst/adml2: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/module1:dev base_image: hub.cstcloud.cn/csst/name1: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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment