This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d36c66f8f1 Revert "[chore](docker)update docker image to almalinux:8" 
(#67752)
0d36c66f8f1 is described below

commit 0d36c66f8f1bf2415690ecee59b0edef8444af7b
Author: yiguolei <[email protected]>
AuthorDate: Thu Sep 10 10:32:02 2026 +0800

    Revert "[chore](docker)update docker image to almalinux:8" (#67752)
    
    Reverts apache/doris#65516
    
    we should never change centos version, because of glibc compatable
---
 docker/compilation/Dockerfile | 34 +++++++++++++++-------------------
 1 file changed, 15 insertions(+), 19 deletions(-)

diff --git a/docker/compilation/Dockerfile b/docker/compilation/Dockerfile
index 01122e055f0..f4b3d403b35 100644
--- a/docker/compilation/Dockerfile
+++ b/docker/compilation/Dockerfile
@@ -15,22 +15,24 @@
 # specific language governing permissions and limitations
 # under the License.
 
-FROM almalinux:8 AS builder
+FROM centos:7 AS builder
 
-# enable PowerTools for static libraries
-RUN dnf install -y dnf-plugins-core \
-    && dnf config-manager --set-enabled powertools \
-    && dnf clean all \
-    && dnf makecache
+# Switch repos to point to to vault.centos.org because CentOS 7 is EOL
+RUN sed -i \
+  -e 's/^mirrorlist/#mirrorlist/' \
+  -e 's/^#baseurl/baseurl/' \
+  -e 's/mirror\.centos\.org/vault.centos.org/' \
+  /etc/yum.repos.d/*.repo
 
-# install dependencies
-RUN dnf install -y byacc patch automake libtool perf vim make which file 
ncurses-devel gettext-devel unzip bzip2 zip util-linux \
-    wget git python2 bison java-1.8.0-openjdk-devel glibc-langpack-en diffutils
+# install epel repo for ccache
+RUN yum install epel-release -y && yum install 
https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm -y 
&& yum clean all && yum makecache
 
-RUN if [ ! -e /usr/bin/python ]; then ln -s /usr/bin/python2 /usr/bin/python; 
fi
+# install dependencies
+RUN yum install -y byacc patch automake libtool perf vim make which file 
ncurses-devel gettext-devel unzip bzip2 zip util-linux \
+    wget git python2 bison java-1.8.0-openjdk-devel
 
 # clean cache
-RUN dnf clean all
+RUN yum clean all
 
 # install jdk17
 RUN wget 
https://doris-thirdparty-1308700295.cos.ap-beijing.myqcloud.com/tools/openjdk-17.0.2_linux-x64_bin.tar.gz
 \
@@ -55,12 +57,6 @@ RUN wget 
https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linu
     && rm /tmp/node-v${NODEJS_VERSION}-linux-x64.tar.xz \
     && rm -rf node-v${NODEJS_VERSION}-linux-x64
 
-# install Rust for lance-c
-ARG RUST_TOOLCHAIN="1.91.0"
-RUN wget https://sh.rustup.rs -q -O /tmp/rustup-init.sh \
-    && sh /tmp/rustup-init.sh -y --profile minimal --default-toolchain 
"${RUST_TOOLCHAIN}" \
-    && rm /tmp/rustup-init.sh
-
 # install ldb-toolchain
 ## 0.18
 RUN wget 
https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.18/ldb_toolchain_gen.sh
 \
@@ -83,7 +79,7 @@ RUN echo '#!/bin/bash' > /usr/local/bin/clang-format && \
 ENV 
REPOSITORY_URL="https://doris-thirdparty-hk-1308700295.cos.ap-hongkong.myqcloud.com/thirdparty";
 \
     DEFAULT_DIR="/var/local" \
     JAVA_HOME="/usr/lib/jvm/java-1.8.0/" \
-    PATH="/root/.cargo/bin:/var/local/ldb-toolchain/bin/:$PATH"
+    PATH="/var/local/ldb-toolchain/bin/:$PATH"
     # USE_AVX2=0
 
 # install ccache
@@ -117,7 +113,7 @@ ENV JAVA_HOME="/usr/lib/jvm/jdk-17.0.2/" \
     MAVEN_HOME="/usr/share/maven" \
     REPOSITORY_URL="https://doris-thirdparty-repo.bj.bcebos.com/thirdparty"; \
     DEFAULT_DIR="/var/local" \
-    
PATH="/usr/local/bin:/root/.cargo/bin:/var/local/ldb-toolchain/bin/:/var/local/thirdparty/installed/bin/:/usr/lib/jvm/jdk-17.0.2/bin/:$PATH"
 \
+    
PATH="/usr/local/bin:/var/local/ldb-toolchain/bin/:/var/local/thirdparty/installed/bin/:/usr/lib/jvm/jdk-17.0.2/bin/:$PATH"
 \
     DORIS_THIRDPARTY="/var/local/thirdparty"
 WORKDIR /root
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to