File tree Expand file tree Collapse file tree
flink-sql-runner/src/main/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,25 +22,23 @@ ARG TARGETARCH
2222USER root
2323
2424# Install JDK 17 (replacing the default JRE)
25- RUN apt-get update && \
26- apt-get install -y --no-install-recommends \
27- openjdk -17-jdk-headless \
25+ RUN apt-get update \
26+ && apt-get install -y --no-install-recommends openjdk-17-jdk-headless \
27+ && ln -sf /usr/lib/jvm/java -17-openjdk-* /usr/lib/jvm/java-17-openjdk \
2828 && rm -rf /var/lib/apt/lists/*
2929
30- # Update JAVA_HOME to point to JDK (handles both amd64 and arm64)
31- RUN ln -sf /usr/lib/jvm/java-17-openjdk-* /usr/lib/jvm/java-17-openjdk
3230ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk
3331ENV PATH=$JAVA_HOME/bin:$PATH
3432
35- RUN set -eux; \
33+ # Download and setup async-profiler
34+ RUN set -eu; \
3635 case "${TARGETARCH:-$(uname -m)}" in \
3736 x86_64) ASYNC_PROFILER_ARCH="x64" ;; \
3837 amd64) ASYNC_PROFILER_ARCH="x64" ;; \
3938 aarch64) ASYNC_PROFILER_ARCH="arm64" ;; \
4039 arm64) ASYNC_PROFILER_ARCH="arm64" ;; \
4140 *) echo "Unsupported architecture: ${TARGETARCH}" >&2; exit 1 ;; \
4241 esac \
43- && apt-get update \
4442 && curl -fsSL "https://github.com/async-profiler/async-profiler/releases/download/v${ASYNC_PROFILER_VERSION}/async-profiler-${ASYNC_PROFILER_VERSION}-linux-${ASYNC_PROFILER_ARCH}.tar.gz" -o /tmp/async-profiler.tar.gz \
4543 && tar -xzf /tmp/async-profiler.tar.gz -C /opt \
4644 && mv "/opt/async-profiler-${ASYNC_PROFILER_VERSION}-linux-${ASYNC_PROFILER_ARCH}" /opt/async-profiler \
You can’t perform that action at this time.
0 commit comments