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
Pyscalebox
Commits
771fee1a
Commit
771fee1a
authored
2 years ago
by
zxl
Browse files
Options
Download
Email Patches
Plain Diff
Commit test coed for Lever1 and Lever2
parent
42470854
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
Dockerfile
Dockerfile
+2
-2
test.py
test.py
+6
-7
test2.py
test2.py
+10
-0
No files found.
Dockerfile
View file @
771fee1a
...
@@ -12,7 +12,7 @@ RUN pip install grpcio
...
@@ -12,7 +12,7 @@ RUN pip install grpcio
RUN
pip
install
protobuf
RUN
pip
install
protobuf
RUN
pip
install
grpcio_tools
RUN
pip
install
grpcio_tools
ENV
CSST_ADML2_JOB_ID=
2
ENV
CSST_ADML2_JOB_ID=
3
ENV
CSST_ADML2_NAME="admL2"
ENV
CSST_ADML2_NAME="admL2"
ENV
CSST_ADML1_JOB_ID=2
ENV
CSST_ADML1_JOB_ID=2
ENV
CSST_ADML1_NAME="admL1"
ENV
CSST_ADML1_NAME="admL1"
...
@@ -27,7 +27,7 @@ COPY *.proto /app/bin/
...
@@ -27,7 +27,7 @@ COPY *.proto /app/bin/
#controld version 202208
#controld version 202208
RUN
cd
/app/bin/
\
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
d
RUN
cd
/app/bin/
\
RUN
cd
/app/bin/
\
&&
python3 setup.py sdist
\
&&
python3 setup.py sdist
\
...
...
This diff is collapsed.
Click to expand it.
test.py
View file @
771fee1a
import
os
#
import os
os
.
environ
[
'CSST_PIPELINE_GRPC_SERVER'
]
=
"122.96.144.152:39092"
#
os.environ['CSST_PIPELINE_GRPC_SERVER']="122.96.144.152:39092"
os
.
environ
[
'CSST_ADML
2
_JOB_ID'
]
=
"
2
"
#
os.environ['CSST_ADML
1
_JOB_ID']="
1
"
#一级流水线测试代码
from
pyscalebox
import
PyScaleboxApi
from
pyscalebox
import
PyScaleboxApi
body
=
"brickid,name1csfszxc"
body
=
"obsid,module1"
PyScaleboxApi
().
send_message_L2
(
body
)
PyScaleboxApi
().
send_message_L1
(
body
)
# msg = "hello world"
# print(msg)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
)
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