File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,21 @@ RUN set -ex; \
6060 rpm -i /tmp/gflags.rpm; \
6161 rm -f /tmp/gflags.rpm /tmp/jemalloc.rpm
6262
63+ # tcmalloc is not available via package manager
64+ # Install required build tools and dependencies, build tcmalloc and cleanup
65+ ARG TCMALLOC_RELEASE_TAG=gperftools-2.16
66+ RUN microdnf install -y git gcc gcc-c++ make autoconf automake libtool which tar patch \
67+ && git clone --depth 1 --branch ${TCMALLOC_RELEASE_TAG} https://github.com/gperftools/gperftools.git \
68+ && cd gperftools \
69+ && ./autogen.sh \
70+ && ./configure --prefix=/usr --disable-debugalloc \
71+ && make -j$(nproc) \
72+ && make install \
73+ && cd .. \
74+ && rm -rf gperftools \
75+ && microdnf clean all \
76+ && ldconfig
77+
6378RUN set -ex; \
6479 # microdnf -y install epel-release; \
6580 rpm -e --nodeps tzdata; \
You can’t perform that action at this time.
0 commit comments