1
0
mirror of https://github.com/newnius/YAO-Dockerfiles.git synced 2025-06-06 07:51:54 +00:00

update yao-scheduler

This commit is contained in:
Newnius 2019-12-04 19:07:21 +08:00
parent 610ee98efb
commit 362b1cc49c
2 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,10 @@ RUN go get github.com/sirupsen/logrus
RUN git clone https://github.com/newnius/YAO-scheduler.git /root/yao-scheduler/
RUN mkdir -p /etc/yao/
ADD conf/config.json /etc/yao/
WORKDIR /root/yao-scheduler/
CMD go run src/*

View File

@ -0,0 +1,9 @@
{
"kafkaBrokers": [
"kafka-node1:9092",
"kafka-node2:9092",
"kafka-node3:9092"
],
"kafkaTopic": "yao",
"schedulerPolicy": "fair"
}