1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00

update agent

This commit is contained in:
Newnius 2020-07-02 14:35:24 +08:00
parent e23a47a30c
commit 429e85b90c
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@ ip=`hostname --ip-address`
docker run \
--gpus all \
--pid=host \
--name yao-agent \
--network yao-net \
--network-alias $(hostname) \
@ -18,9 +19,9 @@ docker run \
--env Port=8000 \
--env HeartbeatInterval=5 \
--env KafkaBrokers=kafka-node1:9092,kafka-node2:9092,kafka-node3:9092 \
--env EnableEventTrigger=true \
--env EnableEventTrigger='true' \
--env PYTHONUNBUFFERED=1 \
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
--mount type=bind,src=/dfs/yao-jobs/,dst=/dfs/yao-jobs/ \
quickdeploy/yao-agent
#--pid=host \

View File

@ -7,4 +7,5 @@ docker run \
--detach=true \
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
--mount type=bind,src=/dfs/yao-jobs/,dst=/dfs/yao-jobs/ \
docker:latest sleep 86400000