2019-06-04 13:01:16 +00:00
|
|
|
# docker build -t yandex/clickhouse-binary-builder .
|
2019-01-10 10:35:17 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
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 \
|
|
|
|
bash \
|
|
|
|
fakeroot \
|
|
|
|
cmake \
|
|
|
|
ccache \
|
|
|
|
curl \
|
|
|
|
software-properties-common
|
|
|
|
|
2019-01-10 10:35:17 +00:00
|
|
|
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main" >> /etc/apt/sources.list
|
2019-03-21 08:02:45 +00:00
|
|
|
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list
|
2018-10-04 17:07:00 +00:00
|
|
|
|
|
|
|
RUN apt-get update -y \
|
|
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install --yes --no-install-recommends \
|
|
|
|
bash \
|
|
|
|
cmake \
|
2019-04-25 12:29:28 +00:00
|
|
|
ccache \
|
2018-10-04 17:07:00 +00:00
|
|
|
curl \
|
|
|
|
gcc-7 \
|
|
|
|
g++-7 \
|
|
|
|
gcc-8 \
|
|
|
|
g++-8 \
|
|
|
|
clang-6.0 \
|
|
|
|
lld-6.0 \
|
|
|
|
libclang-6.0-dev \
|
|
|
|
liblld-6.0-dev \
|
2018-12-29 10:10:35 +00:00
|
|
|
llvm-6.0 \
|
|
|
|
libllvm6.0 \
|
|
|
|
llvm-6.0-dev \
|
|
|
|
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-12-29 10:10:35 +00:00
|
|
|
libicu-dev \
|
2018-10-04 17:07:00 +00:00
|
|
|
libreadline-dev \
|
|
|
|
ninja-build \
|
2019-04-25 14:31:08 +00:00
|
|
|
gperf \
|
2019-02-21 17:14:29 +00:00
|
|
|
git \
|
|
|
|
tzdata
|
2018-10-04 17:07:00 +00:00
|
|
|
|
2019-04-25 12:29:28 +00:00
|
|
|
COPY build.sh /
|
|
|
|
CMD ["/bin/bash", "/build.sh"]
|