mirror of
https://github.com/newnius/YAO-Dockerfiles.git
synced 2025-06-07 16:21:56 +00:00
update yao-scheduler
This commit is contained in:
parent
610ee98efb
commit
362b1cc49c
@ -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 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/
|
WORKDIR /root/yao-scheduler/
|
||||||
|
|
||||||
CMD go run src/*
|
CMD go run src/*
|
||||||
|
9
yao-scheduler/dev/conf/config.json
Normal file
9
yao-scheduler/dev/conf/config.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"kafkaBrokers": [
|
||||||
|
"kafka-node1:9092",
|
||||||
|
"kafka-node2:9092",
|
||||||
|
"kafka-node3:9092"
|
||||||
|
],
|
||||||
|
"kafkaTopic": "yao",
|
||||||
|
"schedulerPolicy": "fair"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user