@@ -13,9 +13,12 @@ ENV DORIS_BUILD_PYTHON_VERSION=python3
1313ENV DORIS_TOOLCHAIN=gcc
1414ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
1515ENV PATH=${JAVA_HOME}/bin:${PATH}
16+ ENV TZ=Asia/Shanghai
1617
17- RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
18- RUN \
18+ RUN \
19+ # prepare apt
20+ sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \
21+ sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \
1922 echo 'Acquire::ForceIPv4 "true";' >> /etc/apt/apt.conf.d/1000-force-ipv4-transport && \
2023 echo 'Acquire::Retries "100";' >> /etc/apt/apt.conf.d/80-retries && \
2124 apt-get update -y && \
@@ -24,16 +27,19 @@ RUN \
2427 apt-get install -y ${PKGS} && \
2528 add-apt-repository -y ppa:ubuntu-toolchain-r/ppa && \
2629 apt-get update -y && \
27- PKGS="vim sudo locales git curl unzip wget zip iputils-ping iproute2" && \
30+ PKGS="vim sudo locales git curl unzip wget zip iputils-ping iproute2 tzdata tree " && \
2831 PKGS="${PKGS} gdb net-tools telnet ccache" && \
2932 apt-get install -y ${PKGS} && \
3033 locale-gen en_US.UTF-8 && \
31- ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/timezone && \
34+ echo ${TZ} > /etc/timezone && \
3235 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
36+ dpkg-reconfigure tzdata && \
3337 # doris build deps
3438 PKGS="openjdk-17-jdk build-essential maven pkg-config cmake byacc flex automake libtool-bin bison binutils-dev libiberty-dev zip unzip libncurses5-dev curl git ninja-build python3" && \
3539 PKGS="${PKGS} libsasl2-dev gcc-10 g++-10 autoconf automake libtool autopoint comerr-dev" && \
3640 PKGS="${PKGS} libkrb5-dev" && \
41+ # misc
42+ PKGS="${PKGS} mysql-client" && \
3743 apt-get install -y ${PKGS} && \
3844 apt-get autoclean && apt-get autoremove && \
3945 rm -rf /var/lib/apt/lists/*
0 commit comments