From 721118bca6ed4102ce6e7e851733a1aa8181e5d3 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 17 Feb 2023 10:12:58 +0800 Subject: [PATCH] feat: Addgraphivzenv (#390) * modify read me * add graphviz and flame graph environment --------- Co-authored-by: fusikai --- cmd/juno-admin/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cmd/juno-admin/Dockerfile b/cmd/juno-admin/Dockerfile index 446ade1a6..0eebe0f6f 100644 --- a/cmd/juno-admin/Dockerfile +++ b/cmd/juno-admin/Dockerfile @@ -3,15 +3,23 @@ FROM alpine:latest WORKDIR /root/juno/ ARG JUNO_TAR - RUN echo ${JUNO_TAR} COPY ${JUNO_TAR} . -RUN cd /root/juno && tar xvf ${JUNO_TAR} && \ +RUN apk add unzip --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \ + wget https://dl.google.com/go/go1.20.1.linux-amd64.tar.gz && \ + tar -C /usr/local -xzf go1.20.1.linux-amd64.tar.gz && \ + wget https://github.com/brendangregg/FlameGraph/archive/refs/heads/master.zip && \ + mkdir -p /home/www/system/pprof/ && \ + unzip master.zip -d /home/www/system/pprof/ && \ + apk add graphviz --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \ + cd /root/juno && tar xvf ${JUNO_TAR} && \ mv /root/juno/juno-admin /usr/local/bin/ && \ ls -al /root/juno/ && \ ls -al /usr/local/bin/ && \ rm ${JUNO_TAR} juno-proxy +ENV PATH /usr/local/go/bin:/home/www/system/pprof/FlameGraph-master:$PATH + EXPOSE 50002 50004 50010 CMD ["/usr/local/bin/juno-admin", "--config=./config/single-region-admin.toml", "-host=0.0.0.0"] \ No newline at end of file