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
Nov 04, 2022
by
zxl
Browse files
替换shell命令为go命令
替换shell命令为go命令 Replace the shell command with the go command
parent
bc38ffa8
Changes
3
Show 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/ \
&&
mkdir
controld
\
&&
python3
-m
grpc_tools.protoc
--python_out
=
.
--grpc_python_out
=
.
-I
.
control.proto
-I
=
control
ENV
CSST_ADML2_JOB_ID="12" \
CSST_PIPELINE_GRPC_SERVER="10.255.2.11:50051"
\ No newline at end of file
ENV
CSST_ADML2_JOB_ID="3" \
CSST_PIPELINE_GRPC_SERVER="122.96.144.152:39092"
\ No newline at end of file
L2/pipelines/Makefile
View file @
40552bd8
...
...
@@ -10,7 +10,7 @@ up-app:
parse
:
CLUSTER
=
$(CLUSTER)
\
${HOME}
/docker-scalebox/bin/parse.sh
app.yaml
scalebox app create
app.yaml
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 . '
...
...
L2/pipelines/app.yaml
View file @
40552bd8
name
:
csst
-1
.app.process
label
:
csst-admin
L1
output_basedir
:
/data/csst-admin
L1
name
:
csst.app.process
label
:
csst-admin
output_basedir
:
/data/csst-admin
cluster
:
csst
parameters
:
initial_status
:
RUNNING
jobs
:
admL
1
:
label
:
admin管理模块
1
base_image
:
hub.cstcloud.cn/csst/adml
1
:dev
admL
2
:
label
:
admin管理模块
base_image
:
hub.cstcloud.cn/csst/adml
2
:dev
type
:
LONG-RUN-JOB
schedule_mode
:
HEAD
#parameters:
# start_message: brickid,name1,name2
## key_example: Dec+5841_09_04/20200817
key_group_regex
:
^(Dec.+/[0-9]+)$
#
environments:
#
environments:
# - RSYNC_SRC=scalebox@159.226.237.136
#
- ROOT_PATH=${ROOT_PATH}
#
- ROOT_PATH=${ROOT_PATH}
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
sink_jobs
:
-
module1
#- module2
module1
:
-
name1
-
name2
# - name3
name1
:
label
:
模块一
base_image
:
hub.cstcloud.cn/csst/
modul
e1:dev
base_image
:
hub.cstcloud.cn/csst/
nam
e1:dev
type
:
LONG-RUN-JOB
schedule_mode
:
HEAD
## key_example: Dec+5841_09_04/20200817
key_group_regex
:
^(Dec.+/[0-9]+)$
# paths:
# - ${ROOT_PATH}:${ROOT_PATH}:ro
# environments:
# environments:
# - RSYNC_SRC=scalebox@159.226.237.136
#
- ROOT_PATH=${ROOT_PATH}
#
- ROOT_PATH=${ROOT_PATH}
# - REGEX_FILTER=^.+_000[0-7]_2bit.fits$
command
:
docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# sink_jobs:
# - admL1
# module2:
# label: 模块二
# base_image: hub.cstcloud.cn/csst/module2:dev
sink_jobs
:
-
admL2
name2
:
label
:
模块二
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
# schedule_mode: HEAD
# ## key_example: Dec+5841_09_04/20200817
...
...
@@ -48,8 +65,7 @@ jobs:
# # - 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:
# # - admL1
# # command: docker run -d --network=host %ENVS% %VOLUMES% %IMAGE%
# sink_jobs:
# - admL2
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