Skip to content

Commit a4dc8b2

Browse files
committed
add tcmalloc to percona-server-8.4 image
1 parent f325312 commit a4dc8b2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

percona-server-8.4/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
6378
RUN set -ex; \
6479
#microdnf -y install epel-release; \
6580
rpm -e --nodeps tzdata; \

0 commit comments

Comments
 (0)