Skip to content

Commit 4bb7e4f

Browse files
fix async-profiler install (#8404)
1 parent 95d88f2 commit 4bb7e4f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docker/images/pinot/Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,9 @@ ENV PINOT_BUILD_DIR=/opt/pinot-build
3333
# extra dependency for running launcher
3434
RUN apt-get update && \
3535
apt-get install -y --no-install-recommends vim wget curl git automake bison flex g++ libboost-all-dev libevent-dev \
36-
libssl-dev libtool make pkg-config sysstat linux-perf openjdk-11-dbg && \
36+
libssl-dev libtool make pkg-config && \
3737
rm -rf /var/lib/apt/lists/*
3838

39-
RUN case `uname -m` in \
40-
x86_64) arch=x64; ;; \
41-
aarch64) arch=arm64; ;; \
42-
*) echo "platform=$(uname -m) un-supported, exit ..."; exit 1; ;; \
43-
esac \
44-
&& mkdir -p /usr/local/lib/async-profiler \
45-
&& curl -L https://github.com/jvm-profiling-tools/async-profiler/releases/download/v2.5.1/async-profiler-2.5.1-linux-${arch}.tar.gz | tar -xz --strip-components 1 -C /usr/local/lib/async-profiler \
46-
&& ln -s /usr/local/lib/async-profiler/profiler.sh /usr/local/bin/async-profiler
47-
4839
# install maven
4940
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
5041
&& wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp \
@@ -81,9 +72,18 @@ ENV JAVA_OPTS="-Xms4G -Xmx4G -Dpinot.admin.system.exit=false"
8172
VOLUME ["${PINOT_HOME}/configs", "${PINOT_HOME}/data"]
8273

8374
RUN apt-get update && \
84-
apt-get install -y --no-install-recommends vim less wget curl git python sysstat procps && \
75+
apt-get install -y --no-install-recommends vim less wget curl git python sysstat procps linux-perf openjdk-11-dbg && \
8576
rm -rf /var/lib/apt/lists/*
8677

78+
RUN case `uname -m` in \
79+
x86_64) arch=x64; ;; \
80+
aarch64) arch=arm64; ;; \
81+
*) echo "platform=$(uname -m) un-supported, exit ..."; exit 1; ;; \
82+
esac \
83+
&& mkdir -p /usr/local/lib/async-profiler \
84+
&& curl -L https://github.com/jvm-profiling-tools/async-profiler/releases/download/v2.5.1/async-profiler-2.5.1-linux-${arch}.tar.gz | tar -xz --strip-components 1 -C /usr/local/lib/async-profiler \
85+
&& ln -s /usr/local/lib/async-profiler/profiler.sh /usr/local/bin/async-profiler
86+
8787
COPY --from=pinot_build_env ${PINOT_HOME} ${PINOT_HOME}
8888
COPY bin ${PINOT_HOME}/bin
8989
COPY etc ${PINOT_HOME}/etc

0 commit comments

Comments
 (0)