mirror of
https://github.com/newnius/YAO-docs.git
synced 2024-07-06 05:15:18 +00:00
rearrange, bugfix
This commit is contained in:
15
sbin/run_agent.sh
Executable file
15
sbin/run_agent.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run \
|
||||
-d \
|
||||
--name yao-agent \
|
||||
--pid=host \
|
||||
-p 8000:8000 \
|
||||
-e ClientID=1 \
|
||||
-e ClientHost=yao-agent \
|
||||
-e KafkaBrokers=kafka-node1:9092,kafka-node2:9092,kafka-node3:9092 \
|
||||
--add-host=kafka-node1:192.168.0.1 \
|
||||
--add-host=kafka-node2:192.168.0.2 \
|
||||
--add-host=kafka-node3:192.168.0.3 \
|
||||
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
|
||||
quickdeploy/yao-agent
|
||||
Reference in New Issue
Block a user