diff --git a/yao-scheduler/dev/Dockerfile b/yao-scheduler/dev/Dockerfile index a313342..5fce9f4 100644 --- a/yao-scheduler/dev/Dockerfile +++ b/yao-scheduler/dev/Dockerfile @@ -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/* diff --git a/yao-scheduler/dev/conf/config.json b/yao-scheduler/dev/conf/config.json new file mode 100644 index 0000000..e918126 --- /dev/null +++ b/yao-scheduler/dev/conf/config.json @@ -0,0 +1,9 @@ +{ + "kafkaBrokers": [ + "kafka-node1:9092", + "kafka-node2:9092", + "kafka-node3:9092" + ], + "kafkaTopic": "yao", + "schedulerPolicy": "fair" +} \ No newline at end of file