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

add glusterfs

This commit is contained in:
2020-06-02 22:00:52 +08:00
parent 1e0dc50608
commit f4f3b11664
2 changed files with 46 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
ip=`hostname --ip-address`
docker run \
--gpus all \
--name yao-agent \
@@ -9,9 +11,14 @@ docker run \
-d \
--restart always \
--detach=true \
--publish 8000:8000 \
--env ClientID=$(hostname) \
--env ClientHost=$(hostname) \
--env ClientExtHost=${ip} \
--env Port=8000 \
--env HeartbeatInterval=5 \
--env KafkaBrokers=kafka-node1:9092,kafka-node2:9092,kafka-node3:9092 \
--env EnableEventTrigger=true \
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
quickdeploy/yao-agent