From 0c133afbafa975c1ebbb5c2c3ee4137488553a57 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Thu, 21 Jan 2021 20:49:29 +0800 Subject: [PATCH] wget tarball --- dockerfiles/n9e/Dockerfile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/dockerfiles/n9e/Dockerfile b/dockerfiles/n9e/Dockerfile index acff95d2..6363ed6c 100644 --- a/dockerfiles/n9e/Dockerfile +++ b/dockerfiles/n9e/Dockerfile @@ -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 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 \ - && yum install mysql net-tools -y \ + && yum install mysql net-tools wget -y \ && yum clean all \ && 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