Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zhang Xiaoli
pyscalebox
Commits
771fee1a
Commit
771fee1a
authored
Nov 09, 2022
by
zxl
Browse files
Commit test coed for Lever1 and Lever2
parent
42470854
Changes
3
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
771fee1a
...
...
@@ -12,7 +12,7 @@ RUN pip install grpcio
RUN
pip
install
protobuf
RUN
pip
install
grpcio_tools
ENV
CSST_ADML2_JOB_ID=
2
ENV
CSST_ADML2_JOB_ID=
3
ENV
CSST_ADML2_NAME="admL2"
ENV
CSST_ADML1_JOB_ID=2
ENV
CSST_ADML1_NAME="admL1"
...
...
@@ -27,7 +27,7 @@ COPY *.proto /app/bin/
#controld version 202208
RUN
cd
/app/bin/
\
&&
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
d
RUN
cd
/app/bin/
\
&&
python3 setup.py sdist
\
...
...
test.py
View file @
771fee1a
import
os
os
.
environ
[
'CSST_PIPELINE_GRPC_SERVER'
]
=
"122.96.144.152:39092"
os
.
environ
[
'CSST_ADML
2
_JOB_ID'
]
=
"
2
"
#
import os
#
os.environ['CSST_PIPELINE_GRPC_SERVER']="122.96.144.152:39092"
#
os.environ['CSST_ADML
1
_JOB_ID']="
1
"
#一级流水线测试代码
from
pyscalebox
import
PyScaleboxApi
body
=
"brickid,name1csfszxc"
PyScaleboxApi
().
send_message_L2
(
body
)
# msg = "hello world"
# print(msg)
\ No newline at end of file
body
=
"obsid,module1"
PyScaleboxApi
().
send_message_L1
(
body
)
test2.py
0 → 100644
View file @
771fee1a
# import os
# # os.environ['CSST_PIPELINE_GRPC_SERVER']="122.96.144.152:39092"
# os.environ['CSST_PIPELINE_GRPC_SERVER']="10.255.2.11:50051"
# os.environ['CSST_ADML2_JOB_ID']="12"
# os.environ['CSST_ADML1_JOB_ID']="14"
from
pyscalebox
import
PyScaleboxApi
#2级流水线测试代码
body
=
"brickid,name1,name2"
PyScaleboxApi
().
send_message_L2
(
body
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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