Skip to content

Commit

Permalink
feat: Addgraphivzenv (#390)
Browse files Browse the repository at this point in the history
* modify read me

* add graphviz and flame graph environment

---------

Co-authored-by: fusikai <fusikai@douyu.tv>
  • Loading branch information
linthan and fusikai authored Feb 17, 2023
1 parent 97e6c86 commit 721118b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cmd/juno-admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 721118b

Please sign in to comment.