Skip to content

Commit 0d04b32

Browse files
authored
[chore](docker)update docker image to almalinux:8 (#65516)
### What problem does this PR solve? Problem Summary: centos7 glibc is 2.17 ``` /root/doris/thirdparty/src/lance-c-0.1.2/doris_build/release/build/quote-1441c3b7aa86c8cd/build-script-build: /lib64/libc.so.6: version `GLIBC_2.18' not found ``` almalinux:8 glibc is 2.18, so update the image for the thirdparty about lance-c
1 parent 5d56602 commit 0d04b32

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

‎docker/compilation/Dockerfile‎

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,22 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
FROM centos:7 AS builder
18+
FROM almalinux:8 AS builder
1919

20-
# Switch repos to point to to vault.centos.org because CentOS 7 is EOL
21-
RUN sed -i \
22-
-e 's/^mirrorlist/#mirrorlist/' \
23-
-e 's/^#baseurl/baseurl/' \
24-
-e 's/mirror\.centos\.org/vault.centos.org/' \
25-
/etc/yum.repos.d/*.repo
26-
27-
# install epel repo for ccache
28-
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
20+
# enable PowerTools for static libraries
21+
RUN dnf install -y dnf-plugins-core \
22+
&& dnf config-manager --set-enabled powertools \
23+
&& dnf clean all \
24+
&& dnf makecache
2925

3026
# install dependencies
31-
RUN yum install -y byacc patch automake libtool perf vim make which file ncurses-devel gettext-devel unzip bzip2 zip util-linux \
32-
wget git python2 bison java-1.8.0-openjdk-devel
27+
RUN dnf install -y byacc patch automake libtool perf vim make which file ncurses-devel gettext-devel unzip bzip2 zip util-linux \
28+
wget git python2 bison java-1.8.0-openjdk-devel glibc-langpack-en diffutils
29+
30+
RUN if [ ! -e /usr/bin/python ]; then ln -s /usr/bin/python2 /usr/bin/python; fi
3331

3432
# clean cache
35-
RUN yum clean all
33+
RUN dnf clean all
3634

3735
# install jdk17
3836
RUN wget https://doris-thirdparty-1308700295.cos.ap-beijing.myqcloud.com/tools/openjdk-17.0.2_linux-x64_bin.tar.gz \
@@ -55,6 +53,12 @@ RUN wget https://nodejs.org/download/release/latest-v14.x/node-v14.21.3-linux-x6
5553
&& cp -r node-v14.21.3-linux-x64/* /usr/local/ \
5654
&& rm /tmp/node-v14.21.3-linux-x64.tar.gz && rm -rf node-v14.21.3-linux-x64
5755

56+
# install Rust for lance-c
57+
ARG RUST_TOOLCHAIN="1.91.0"
58+
RUN wget https://sh.rustup.rs -q -O /tmp/rustup-init.sh \
59+
&& sh /tmp/rustup-init.sh -y --profile minimal --default-toolchain "${RUST_TOOLCHAIN}" \
60+
&& rm /tmp/rustup-init.sh
61+
5862
# install ldb-toolchain
5963
## 0.18
6064
RUN wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.18/ldb_toolchain_gen.sh \
@@ -77,7 +81,7 @@ RUN echo '#!/bin/bash' > /usr/local/bin/clang-format && \
7781
ENV REPOSITORY_URL="https://doris-thirdparty-hk-1308700295.cos.ap-hongkong.myqcloud.com/thirdparty" \
7882
DEFAULT_DIR="/var/local" \
7983
JAVA_HOME="/usr/lib/jvm/java-1.8.0/" \
80-
PATH="/var/local/ldb-toolchain/bin/:$PATH"
84+
PATH="/root/.cargo/bin:/var/local/ldb-toolchain/bin/:$PATH"
8185
# USE_AVX2=0
8286

8387
# install ccache
@@ -111,7 +115,7 @@ ENV JAVA_HOME="/usr/lib/jvm/jdk-17.0.2/" \
111115
MAVEN_HOME="/usr/share/maven" \
112116
REPOSITORY_URL="https://doris-thirdparty-repo.bj.bcebos.com/thirdparty" \
113117
DEFAULT_DIR="/var/local" \
114-
PATH="/usr/local/bin:/var/local/ldb-toolchain/bin/:/var/local/thirdparty/installed/bin/:/usr/lib/jvm/jdk-17.0.2/bin/:$PATH" \
118+
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" \
115119
DORIS_THIRDPARTY="/var/local/thirdparty"
116120
WORKDIR /root
117121

0 commit comments

Comments
 (0)