2021-09-24 10:48:28 +00:00
|
|
|
# docker build -t clickhouse/test-util .
|
2023-06-19 16:49:54 +00:00
|
|
|
FROM ubuntu:22.04
|
2022-07-29 12:31:53 +00:00
|
|
|
|
|
|
|
# ARG for quick switch to a given ubuntu mirror
|
|
|
|
ARG apt_archive="http://archive.ubuntu.com"
|
|
|
|
RUN sed -i "s|http://archive.ubuntu.com|$apt_archive|g" /etc/apt/sources.list
|
|
|
|
|
2024-05-18 14:39:56 +00:00
|
|
|
# FIXME: rebuild for clang 18.1.3, that contains a workaround [1] for
|
|
|
|
# sanitizers issue [2]:
|
|
|
|
#
|
|
|
|
# $ git tag --contains c2a57034eff048cd36c563c8e0051db3a70991b3 | tail -1
|
|
|
|
# llvmorg-18.1.3
|
|
|
|
#
|
|
|
|
# [1]: https://github.com/llvm/llvm-project/commit/c2a57034eff048cd36c563c8e0051db3a70991b3
|
|
|
|
# [2]: https://github.com/ClickHouse/ClickHouse/issues/64086
|
2024-02-27 22:17:11 +00:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive LLVM_VERSION=18
|
2022-07-29 12:31:53 +00:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install \
|
2024-07-17 00:11:09 +00:00
|
|
|
sudo \
|
2022-07-29 12:31:53 +00:00
|
|
|
apt-transport-https \
|
|
|
|
apt-utils \
|
|
|
|
ca-certificates \
|
2022-11-25 10:37:30 +00:00
|
|
|
curl \
|
2022-07-29 12:31:53 +00:00
|
|
|
dnsutils \
|
|
|
|
gnupg \
|
|
|
|
iputils-ping \
|
|
|
|
lsb-release \
|
|
|
|
wget \
|
|
|
|
--yes --no-install-recommends --verbose-versions \
|
|
|
|
&& export LLVM_PUBKEY_HASH="bda960a8da687a275a2078d43c111d66b1c6a893a3275271beedf266c1ff4a0cdecb429c7a5cccf9f486ea7aa43fd27f" \
|
|
|
|
&& wget -nv -O /tmp/llvm-snapshot.gpg.key https://apt.llvm.org/llvm-snapshot.gpg.key \
|
|
|
|
&& echo "${LLVM_PUBKEY_HASH} /tmp/llvm-snapshot.gpg.key" | sha384sum -c \
|
|
|
|
&& apt-key add /tmp/llvm-snapshot.gpg.key \
|
|
|
|
&& export CODENAME="$(lsb_release --codename --short | tr 'A-Z' 'a-z')" \
|
2022-11-25 10:37:30 +00:00
|
|
|
&& echo "deb https://apt.llvm.org/${CODENAME}/ llvm-toolchain-${CODENAME}-${LLVM_VERSION} main" >> \
|
2022-07-29 12:31:53 +00:00
|
|
|
/etc/apt/sources.list \
|
2024-03-11 08:49:25 +00:00
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install --yes --no-install-recommends --verbose-versions llvm-${LLVM_VERSION} \
|
2024-01-29 13:00:22 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/*
|
|
|
|
|
2024-02-08 23:15:52 +00:00
|
|
|
# Install cmake 3.20+ for Rust support
|
2022-11-25 10:37:30 +00:00
|
|
|
# Used https://askubuntu.com/a/1157132 as reference
|
|
|
|
RUN curl -s https://apt.kitware.com/keys/kitware-archive-latest.asc | \
|
|
|
|
gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg && \
|
|
|
|
echo "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" >> /etc/apt/sources.list
|
|
|
|
|
2022-07-29 12:31:53 +00:00
|
|
|
# initial packages
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install \
|
|
|
|
bash \
|
|
|
|
bsdmainutils \
|
|
|
|
build-essential \
|
|
|
|
gdb \
|
|
|
|
git \
|
|
|
|
gperf \
|
|
|
|
moreutils \
|
|
|
|
nasm \
|
|
|
|
pigz \
|
|
|
|
rename \
|
|
|
|
software-properties-common \
|
|
|
|
tzdata \
|
|
|
|
--yes --no-install-recommends \
|
2024-01-29 13:00:22 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/*
|
|
|
|
|
2021-09-24 10:48:28 +00:00
|
|
|
COPY process_functional_tests_result.py /
|