Skip to content

Commit fb943a7

Browse files
committed
protobuf.cpp
1 parent 6f6c936 commit fb943a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docker/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# sudo service docker start
66
# sudo usermod -aG docker ${USER}
77

8-
# docker image build -t chronolaw/cpp_study .
8+
# docker build -t chronolaw/cpp_study .
99

1010
# docker run -it chronolaw/cpp_study bash
1111
# docker run -it --rm chronolaw/cpp_study bash
@@ -22,14 +22,15 @@ FROM ${SRC_IMAGE}
2222

2323
# gcc-multilib g++-multilib
2424
# linux-tools-common
25-
# linux-tools-4.4.0-31-generic linux-cloud-tools-4.4.0-31-generic linux-tools-generic linux-cloud-tools-generic
25+
# linux-tools-4.4.0-31-generic linux-cloud-tools-4.4.0-31-generic linux-tools-generic linux-cloud-tools-generic
2626
# graphviz
2727
# && mkdir -p cpp_study/common \
2828

2929
ARG JSON_VERSION="3.9.1"
3030
ARG CPR_VERSION="1.4.0"
3131
ARG LUAJIT_VERSION="2.1-20200102"
3232
ARG LUABRIDAGE_VERSION="2.6"
33+
ARG GPERF_VERSION="2.8"
3334

3435
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
3536
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
@@ -60,7 +61,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
6061
&& curl -fsL https://github.com/vinniefalco/LuaBridge/archive/${LUABRIDAGE_VERSION}.tar.gz -o LuaBridge.tgz \
6162
&& tar xfz LuaBridge.tgz \
6263
&& ln -s ~/github/LuaBridge-${LUABRIDAGE_VERSION}/Source/LuaBridge/ ~/cpp_study/common/ \
64+
&& curl -fsL https://github.com/gperftools/gperftools/releases/download/gperftools-${GPERF_VERSION}/gperftools-${GPERF_VERSION}.tar.gz -o gperf.tgz \
65+
&& tar xfz gperf.tgz \
66+
&& ln -s ~/github/gperftools-${GPERF_VERSION}/pprof-symbolize /bin/pprof \
6367
&& git clone https://github.com/brendangregg/FlameGraph.git \
68+
&& ln -s ~/github/FlameGraph/flamegraph.pl ~/cpp_study/section4/ \
6469
&& rm *.tgz \
6570
&& echo "set nu" >> ~/.vimrc \
6671
&& echo "sy on" >> ~/.vimrc \

0 commit comments

Comments
 (0)