wget tarball

This commit is contained in:
Ulric Qin 2021-01-21 20:49:29 +08:00
parent 955fe6795d
commit 0c133afbaf
1 changed files with 11 additions and 12 deletions

View File

@ -1,18 +1,17 @@
FROM golang as builder
WORKDIR /home/n9e/builder
ENV GOPROXY=https://goproxy.cn,direct
RUN git clone https://hub.fastgit.org/didi/nightingale.git
RUN nightingale/control build
FROM centos:7 FROM centos:7
WORKDIR /home/n9e WORKDIR /home/n9e
COPY --from=builder /home/n9e/builder/nightingale/ .
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
COPY entrpoint.sh .
RUN set -ex \ RUN set -ex \
&& yum install mysql net-tools -y \ && yum install mysql net-tools wget -y \
&& yum clean all \ && yum clean all \
&& rm -rf /var/cache/yum && rm -rf /var/cache/yum
ADD http://116.85.64.82/n9e.tar.gz .
RUN tar xvf n9e.tar.gz \
&& 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
COPY entrpoint.sh .
ENTRYPOINT ./entrpoint.sh ENTRYPOINT ./entrpoint.sh