2019-06-04 13:01:16 +00:00
|
|
|
# docker build -t yandex/clickhouse-deb-builder .
|
2020-08-15 12:43:58 +00:00
|
|
|
FROM ubuntu:19.10
|
2018-10-04 17:07:00 +00:00
|
|
|
|
2020-04-20 20:13:33 +00:00
|
|
|
RUN apt-get --allow-unauthenticated update -y && apt-get install --yes wget gnupg
|
|
|
|
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
2020-08-15 12:43:58 +00:00
|
|
|
RUN echo "deb [trusted=yes] http://apt.llvm.org/eoan/ llvm-toolchain-eoan-10 main" >> /etc/apt/sources.list
|
2020-04-20 20:04:35 +00:00
|
|
|
|
2020-06-29 13:13:20 +00:00
|
|
|
# initial packages
|
2019-01-10 10:35:17 +00:00
|
|
|
RUN apt-get --allow-unauthenticated update -y \
|
2018-10-04 17:07:00 +00:00
|
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
2019-01-10 10:35:17 +00:00
|
|
|
apt-get --allow-unauthenticated install --yes --no-install-recommends \
|
2018-10-04 17:07:00 +00:00
|
|
|
bash \
|
|
|
|
fakeroot \
|
2019-04-25 12:29:28 +00:00
|
|
|
ccache \
|
2018-10-04 17:07:00 +00:00
|
|
|
curl \
|
2019-09-06 19:19:41 +00:00
|
|
|
software-properties-common \
|
|
|
|
gnupg \
|
|
|
|
apt-transport-https \
|
|
|
|
ca-certificates
|
|
|
|
|
2020-05-21 15:30:08 +00:00
|
|
|
# Special dpkg-deb (https://github.com/ClickHouse-Extras/dpkg) version which is able
|
|
|
|
# to compress files using pigz (https://zlib.net/pigz/) instead of gzip.
|
|
|
|
# Significantly increase deb packaging speed and compatible with old systems
|
2020-08-07 16:07:52 +00:00
|
|
|
RUN curl -O https://clickhouse-builds.s3.yandex.net/utils/1/dpkg-deb
|
2020-05-21 15:30:08 +00:00
|
|
|
RUN chmod +x dpkg-deb
|
|
|
|
RUN cp dpkg-deb /usr/bin
|
|
|
|
|
2020-08-15 12:43:58 +00:00
|
|
|
|
|
|
|
# Libraries from OS are only needed to test the "unbundled" build (that is not used in production).
|
2019-05-20 09:51:52 +00:00
|
|
|
RUN apt-get --allow-unauthenticated update -y \
|
|
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get --allow-unauthenticated install --yes --no-install-recommends \
|
2019-07-29 11:04:25 +00:00
|
|
|
gcc-9 \
|
|
|
|
g++-9 \
|
2020-04-30 12:10:32 +00:00
|
|
|
llvm-10 \
|
2020-04-20 20:04:35 +00:00
|
|
|
clang-10 \
|
|
|
|
lld-10 \
|
|
|
|
clang-tidy-10 \
|
2020-03-22 21:10:14 +00:00
|
|
|
clang-9 \
|
|
|
|
lld-9 \
|
|
|
|
clang-tidy-9 \
|
2020-08-15 12:43:58 +00:00
|
|
|
libicu-dev \
|
|
|
|
libreadline-dev \
|
|
|
|
gperf \
|
2018-10-04 17:07:00 +00:00
|
|
|
ninja-build \
|
|
|
|
perl \
|
|
|
|
pkg-config \
|
|
|
|
devscripts \
|
|
|
|
debhelper \
|
2018-11-21 10:09:16 +00:00
|
|
|
git \
|
2020-08-15 12:43:58 +00:00
|
|
|
libc++-dev \
|
|
|
|
libc++abi-dev \
|
|
|
|
libboost-program-options-dev \
|
|
|
|
libboost-system-dev \
|
|
|
|
libboost-filesystem-dev \
|
|
|
|
libboost-thread-dev \
|
|
|
|
libboost-iostreams-dev \
|
|
|
|
libboost-regex-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
liblz4-dev \
|
|
|
|
libdouble-conversion-dev \
|
|
|
|
librdkafka-dev \
|
|
|
|
libpoconetssl62 \
|
|
|
|
libpoco-dev \
|
|
|
|
libgoogle-perftools-dev \
|
|
|
|
libzstd-dev \
|
|
|
|
libltdl-dev \
|
|
|
|
libre2-dev \
|
|
|
|
libjemalloc-dev \
|
|
|
|
libmsgpack-dev \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
opencl-headers \
|
|
|
|
ocl-icd-libopencl1 \
|
|
|
|
intel-opencl-icd \
|
|
|
|
unixodbc-dev \
|
|
|
|
odbcinst \
|
2019-04-19 03:02:13 +00:00
|
|
|
tzdata \
|
2019-06-27 11:16:56 +00:00
|
|
|
gperf \
|
2019-08-29 12:36:41 +00:00
|
|
|
alien \
|
2020-08-15 12:43:58 +00:00
|
|
|
libcapnp-dev \
|
2019-09-17 14:24:45 +00:00
|
|
|
cmake \
|
2019-09-17 16:42:18 +00:00
|
|
|
gdb \
|
2020-08-15 12:43:58 +00:00
|
|
|
pigz \
|
2020-08-15 08:05:38 +00:00
|
|
|
moreutils \
|
2020-08-15 12:43:58 +00:00
|
|
|
libcctz-dev \
|
|
|
|
libldap2-dev \
|
|
|
|
libsasl2-dev \
|
|
|
|
heimdal-multidev \
|
|
|
|
libhyperscan-dev
|
2019-09-17 19:26:24 +00:00
|
|
|
|
2019-09-17 16:42:18 +00:00
|
|
|
|
2020-03-03 12:32:54 +00:00
|
|
|
# This symlink required by gcc to find lld compiler
|
2020-04-20 20:04:35 +00:00
|
|
|
RUN ln -s /usr/bin/lld-10 /usr/bin/ld.lld
|
2020-02-07 20:59:51 +00:00
|
|
|
|
2019-04-25 12:29:28 +00:00
|
|
|
COPY build.sh /
|
2019-09-17 14:24:45 +00:00
|
|
|
|
2019-04-25 12:29:28 +00:00
|
|
|
CMD ["/bin/bash", "/build.sh"]
|