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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user