mirror of
https://github.com/newnius/YAO-Dockerfiles.git
synced 2025-12-13 01:26:44 +00:00
update yao-scheduler
This commit is contained in:
@@ -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/*
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user