ClickHouse/docker/packager/deb/Dockerfile

76 lines
2.2 KiB
Docker
Raw Normal View History

2019-06-04 13:01:16 +00:00
# docker build -t yandex/clickhouse-deb-builder .
2020-03-22 21:10:14 +00:00
FROM ubuntu:19.10
RUN apt-get --allow-unauthenticated update -y \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get --allow-unauthenticated install --yes --no-install-recommends \
bash \
fakeroot \
2019-04-25 12:29:28 +00:00
ccache \
curl \
2019-09-06 19:19:41 +00:00
software-properties-common \
gnupg \
apt-transport-https \
ca-certificates
2020-03-22 21:10:14 +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-03-22 21:10:14 +00:00
clang-9 \
lld-9 \
clang-tidy-9 \
libicu-dev \
libreadline-dev \
gperf \
ninja-build \
perl \
pkg-config \
devscripts \
debhelper \
git \
libc++-dev \
libc++abi-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-thread-dev \
zlib1g-dev \
liblz4-dev \
libdouble-conversion-dev \
librdkafka-dev \
2020-03-23 11:02:39 +00:00
libpoconetssl62 \
libpoco-dev \
libgoogle-perftools-dev \
libzstd-dev \
libltdl-dev \
libre2-dev \
libjemalloc-dev \
unixodbc-dev \
2019-02-21 17:14:29 +00:00
odbcinst \
tzdata \
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 \
2020-03-17 13:18:36 +00:00
moreutils \
libcctz-dev
2019-09-17 19:26:24 +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
2020-03-03 12:32:54 +00:00
# This symlink required by gcc to find lld compiler
2020-03-22 21:10:14 +00:00
RUN ln -s /usr/bin/lld-9 /usr/bin/ld.lld
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"]