2019-05-06 15:35:30 +08:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
|
apt install -y wget vim git gcc httpie dnsutils
|
|
|
|
|
|
|
|
|
|
RUN wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz && \
|
|
|
|
|
tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz && \
|
|
|
|
|
rm go1.12.4.linux-amd64.tar.gz
|
|
|
|
|
|
|
|
|
|
ENV PATH $PATH:/usr/local/go/bin
|
|
|
|
|
|
|
|
|
|
RUN go get github.com/Shopify/sarama
|
2019-07-10 20:47:02 +08:00
|
|
|
RUN go get github.com/sirupsen/logrus
|
2020-05-23 21:10:47 +08:00
|
|
|
RUN go get github.com/MaxHalford/eaopt
|
2019-05-06 15:35:30 +08:00
|
|
|
|
|
|
|
|
RUN git clone https://github.com/newnius/YAO-scheduler.git /root/yao-scheduler/
|
|
|
|
|
|
2019-12-04 19:07:21 +08:00
|
|
|
RUN mkdir -p /etc/yao/
|
|
|
|
|
|
|
|
|
|
ADD conf/config.json /etc/yao/
|
|
|
|
|
|
2019-05-06 16:10:49 +08:00
|
|
|
WORKDIR /root/yao-scheduler/
|
2019-05-06 15:35:30 +08:00
|
|
|
|
2020-05-26 11:48:34 +08:00
|
|
|
ADD bootstrap.sh /etc/
|
|
|
|
|
|
|
|
|
|
CMD ["/etc/bootstrap.sh"]
|