This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new bdc3fcf4884 branch-4.1: [fix](build) Update Doris compose to Debian 12
with Liberica JDK 17 #67664 (#67688)
bdc3fcf4884 is described below
commit bdc3fcf48840bb579ba0fa084f1f8655d5c6dddb
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Sep 9 22:58:30 2026 +0800
branch-4.1: [fix](build) Update Doris compose to Debian 12 with Liberica
JDK 17 #67664 (#67688)
Cherry-picked from #67664
Co-authored-by: deardeng <[email protected]>
---
docker/runtime/doris-compose/Dockerfile | 7 ++++---
docker/runtime/doris-compose/Readme.md | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/docker/runtime/doris-compose/Dockerfile
b/docker/runtime/doris-compose/Dockerfile
index 63f31b9c5c8..b8981ab30f6 100644
--- a/docker/runtime/doris-compose/Dockerfile
+++ b/docker/runtime/doris-compose/Dockerfile
@@ -23,7 +23,7 @@
# choose a base image
# doris 2.1, 3.0+, master use JDK 17
-ARG JDK_IMAGE=openjdk:17.0.1-jdk-slim
+ARG JDK_IMAGE=bellsoft/liberica-openjdk-debian:17
# doris 2.0 use JDK 8
# build 2.0 image, example:
@@ -55,12 +55,13 @@ FROM ${JDK_IMAGE}
# set environment variables
ENV JACOCO_VERSION=0.8.8
-RUN sed -i -e s@/deb.debian.org/@/mirrors.aliyun.com/@g -e
s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list \
+RUN find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) -exec \
+ sed -i -e s@/deb.debian.org/@/mirrors.aliyun.com/@g -e
s@/security.debian.org/@/mirrors.aliyun.com/@g {} + \
&& apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
default-mysql-client \
- python \
+ python-is-python3 \
lsof \
tzdata \
curl \
diff --git a/docker/runtime/doris-compose/Readme.md
b/docker/runtime/doris-compose/Readme.md
index a92a1fff764..9a978515950 100644
--- a/docker/runtime/doris-compose/Readme.md
+++ b/docker/runtime/doris-compose/Readme.md
@@ -49,7 +49,7 @@ If build doris use `sh build.sh --fe --be --cloud` **without
do any change on th
docker build -f docker/runtime/doris-compose/Dockerfile -t <image> .
```
-The Dockerfile default use JDK 17, for doris 2.1, 3.0, master, they all
default use JDK 17.
+The Dockerfile defaults to `bellsoft/liberica-openjdk-debian:17`, which
provides Debian 12 (bookworm) and Liberica JDK 17 for Doris 2.1, 3.0 and master.
But doris 2.0 still use JDK 8, for build 2.0 image, user need specific use JDK
8 with arg `JDK_IMAGE=openjdk:8u342-jdk`. Here is build 2.0 image command:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]