Skip to content

Commit b5bb57a

Browse files
authored
[improve](docker) docker base image add perf and pprof for CPU profile (#50536)
### What problem does this PR solve? Add the environment dependency of running CPU profile to the docker base image Related PR: #40330 Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [x] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [x] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [x] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
1 parent 27c6dc7 commit b5bb57a

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

docker/runtime/base-image/Dockerfile_base

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ ARG TARGETARCH
2828

2929
RUN sed -i -e 's/^APT/# APT/' -e 's/^DPkg/# DPkg/' /etc/apt/apt.conf.d/docker-clean && \
3030
apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
31-
patchelf gdb binutils binutils-common mysql-client iperf3\
31+
patchelf gdb binutils binutils-common mysql-client iperf3 \
3232
curl wget less vim htop iproute2 numactl jq iotop sysstat \
3333
tcpdump iputils-ping dnsutils strace lsof blktrace tzdata \
3434
bpfcc-tools linux-headers-realtime linux-tools-realtime silversearcher-ag \
35+
google-perftools libperl-dev python2-dev \
3536
net-tools ca-certificates openssl && apt-get clean && rm -rf /var/lib/apt/lists/* && mkdir -p /usr/lib/jvm/ && \
37+
ln -sf /usr/lib/linux-tools/`ls /usr/lib/linux-tools/`/perf /usr/bin/perf &&\
38+
ln -s /usr/bin/google-pprof /usr/bin/pprof && \
3639
if echo $TARGETARCH | grep 'arm64' >>/dev/null ; then \
3740
wget -c http://selectdb-doris-1308700295.cos.ap-beijing.myqcloud.com/toolkit/jdk/bisheng-jdk-17.0.10-linux-aarch64.tar.gz -O - | tar -xz -C /usr/lib/jvm/ && mv /usr/lib/jvm/bisheng-jdk-17.0.10/ /usr/lib/jvm/jdk-17 && \
3841
wget -c http://selectdb-doris-1308700295.cos.ap-beijing.myqcloud.com/toolkit/jdk/bisheng-jdk-8u352-linux-aarch64.tar.gz -O - | tar -xz -C /usr/lib/jvm/ && mv /usr/lib/jvm/bisheng-jdk1.8.0_352/ /usr/lib/jvm/jdk-8; \
@@ -44,3 +47,6 @@ RUN sed -i -e 's/^APT/# APT/' -e 's/^DPkg/# DPkg/' /etc/apt/apt.conf.d/docker-cl
4447
COPY --from=apache/doris:debug-latest /doris-debug /opt/apache-doris/
4548

4649
WORKDIR /opt/apache-doris
50+
51+
# The last update at: April 29, 2025.
52+
# The docker image tag is changed to: base-2.0

docker/runtime/be/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# get the binary from doris github and utar into resource, update the directory as apache-`version(example:2.0.1)`-bin-`architecture(amd64/arm64)` mode.
2727

2828
# choose a base image
29-
FROM apache/doris:base-latest
29+
FROM apache/doris:base-2.0
3030

3131
ARG TARGETARCH
3232

docker/runtime/broker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# we have support buildx for amd64 and arm64 architecture image build.
2626
# get the binary from doris github and utar into resource, update the directory as apache-`version(example:2.0.1)`-bin-`architecture(amd64/arm64)` mode.
2727

28-
FROM apache/doris:base-latest
28+
FROM apache/doris:base-2.0
2929

3030
ARG TARGETARCH
3131

docker/runtime/fe/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# we have support buildx for amd64 and arm64 architecture image build.
2626
# get the binary from doris github and utar into resource, update the directory as apache-`version(example:2.0.1)`-bin-`architecture(amd64/arm64)` mode.
2727

28-
FROM apache/doris:base-latest
28+
FROM apache/doris:base-2.0
2929

3030
ARG TARGETARCH
3131

docker/runtime/ms/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# get the binary from doris github and utar into resource, update the directory as apache-`version(example:3.0.0)`-bin-`architecture(amd64/arm64)` mode.
2727

2828
# choose a base image
29-
FROM apache/doris:base-latest
29+
FROM apache/doris:base-2.0
3030

3131
ARG TARGETARCH
3232

0 commit comments

Comments
 (0)