2019-06-04 13:01:16 +00:00
|
|
|
# docker build -t yandex/clickhouse-deb-builder .
|
2019-01-10 10:35:17 +00:00
|
|
|
FROM ubuntu:18.04
|
2018-10-04 17:07:00 +00:00
|
|
|
|
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
|
|
|
|
|
2019-05-20 09:51:52 +00:00
|
|
|
|
|
|
|
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main" >> /etc/apt/sources.list
|
|
|
|
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list
|
2019-07-29 11:04:25 +00:00
|
|
|
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
|
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 \
|
2018-10-04 17:07:00 +00:00
|
|
|
gcc-7 \
|
|
|
|
g++-7 \
|
|
|
|
gcc-8 \
|
|
|
|
g++-8 \
|
2019-07-29 11:04:25 +00:00
|
|
|
gcc-9 \
|
|
|
|
g++-9 \
|
2018-10-04 17:07:00 +00:00
|
|
|
clang-6.0 \
|
|
|
|
lld-6.0 \
|
|
|
|
libclang-6.0-dev \
|
|
|
|
liblld-6.0-dev \
|
2018-11-21 10:09:16 +00:00
|
|
|
llvm-6.0 \
|
|
|
|
libllvm6.0 \
|
|
|
|
llvm-6.0-dev \
|
2018-12-29 10:10:35 +00:00
|
|
|
clang-7 \
|
|
|
|
lld-7 \
|
|
|
|
libclang-7-dev \
|
|
|
|
liblld-7-dev \
|
2019-03-21 08:02:45 +00:00
|
|
|
clang-8 \
|
|
|
|
lld-8 \
|
|
|
|
libclang-8-dev \
|
|
|
|
liblld-8-dev \
|
2018-11-21 10:09:16 +00:00
|
|
|
libicu-dev \
|
2018-10-04 17:07:00 +00:00
|
|
|
libreadline-dev \
|
2019-04-25 14:31:08 +00:00
|
|
|
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 \
|
|
|
|
libc++-dev \
|
2019-01-10 10:35:17 +00:00
|
|
|
libc++abi-dev \
|
2018-11-21 10:09:16 +00:00
|
|
|
libboost-program-options-dev \
|
|
|
|
libboost-system-dev \
|
|
|
|
libboost-filesystem-dev \
|
|
|
|
libboost-thread-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
liblz4-dev \
|
|
|
|
libdouble-conversion-dev \
|
|
|
|
librdkafka-dev \
|
2018-11-21 12:05:31 +00:00
|
|
|
libpoconetssl50 \
|
2018-11-21 10:09:16 +00:00
|
|
|
libpoco-dev \
|
|
|
|
libgoogle-perftools-dev \
|
|
|
|
libzstd-dev \
|
2018-11-22 12:14:55 +00:00
|
|
|
libltdl-dev \
|
2018-11-21 10:09:16 +00:00
|
|
|
libre2-dev \
|
|
|
|
libjemalloc-dev \
|
|
|
|
unixodbc-dev \
|
2019-02-21 17:14:29 +00:00
|
|
|
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 \
|
2019-09-06 19:19:41 +00:00
|
|
|
libcapnp-dev \
|
2019-09-17 14:24:45 +00:00
|
|
|
cmake \
|
2019-09-17 16:42:18 +00:00
|
|
|
gdb \
|
2019-09-17 19:26:24 +00:00
|
|
|
pigz \
|
|
|
|
moreutils
|
|
|
|
|
2019-08-29 12:36:41 +00:00
|
|
|
|
2019-06-27 11:16:56 +00:00
|
|
|
|
2019-09-17 17:07:35 +00:00
|
|
|
# Special dpkg-deb (https://github.com/ClickHouse-Extras/dpkg) version which is able
|
2019-09-17 16:42:18 +00:00
|
|
|
# to compress files using pigz (https://zlib.net/pigz/) instead of gzip.
|
|
|
|
# Significantly increase deb packaging speed and compatible with old systems
|
|
|
|
RUN curl -O https://clickhouse-builds.s3.yandex.net/utils/dpkg-deb
|
|
|
|
RUN chmod +x dpkg-deb
|
|
|
|
RUN cp dpkg-deb /usr/bin
|
|
|
|
|
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"]
|