2020-09-29 11:18:07 +08:00
|
|
|
FROM golang as builder
|
|
|
|
WORKDIR /home/n9e/builder
|
|
|
|
ENV GOPROXY=https://mirrors.aliyun.com/goproxy/
|
|
|
|
RUN git clone https://hub.fastgit.org/didi/nightingale.git
|
|
|
|
RUN nightingale/control build
|
|
|
|
|
|
|
|
FROM centos:7
|
|
|
|
WORKDIR /home/n9e
|
|
|
|
COPY --from=builder /home/n9e/builder/nightingale/ .
|
2020-11-11 13:50:09 +08:00
|
|
|
RUN \
|
|
|
|
sed -i "s/127.0.0.1:6379/redis:6379/g" `grep -rl "127.0.0.1:6379" ./etc/` &&\
|
|
|
|
sed -i 's/127.0.0.1/mysql/g' etc/mysql.yml
|
2020-09-29 11:18:07 +08:00
|
|
|
COPY entrpoint.sh .
|
|
|
|
RUN yum install mysql net-tools -y
|
2020-11-11 13:50:09 +08:00
|
|
|
ENTRYPOINT ./entrpoint.sh
|