mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
63 lines
1.8 KiB
Docker
63 lines
1.8 KiB
Docker
# docker build -t yandex/clickhouse-binary-builder .
|
|
FROM ubuntu:18.04
|
|
|
|
RUN apt-get --allow-unauthenticated update -y \
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
|
apt-get --allow-unauthenticated install --yes --no-install-recommends \
|
|
bash \
|
|
fakeroot \
|
|
ccache \
|
|
curl \
|
|
software-properties-common \
|
|
gnupg \
|
|
apt-transport-https \
|
|
ca-certificates
|
|
|
|
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
|
|
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
|
|
RUN curl https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add -
|
|
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
|
|
|
|
|
|
RUN apt-get update -y \
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install --yes --no-install-recommends \
|
|
bash \
|
|
cmake \
|
|
ccache \
|
|
curl \
|
|
gcc-7 \
|
|
g++-7 \
|
|
gcc-8 \
|
|
g++-8 \
|
|
gcc-9 \
|
|
g++-9 \
|
|
clang-6.0 \
|
|
lld-6.0 \
|
|
libclang-6.0-dev \
|
|
liblld-6.0-dev \
|
|
llvm-6.0 \
|
|
libllvm6.0 \
|
|
llvm-6.0-dev \
|
|
clang-7 \
|
|
lld-7 \
|
|
libclang-7-dev \
|
|
liblld-7-dev \
|
|
clang-8 \
|
|
lld-8 \
|
|
libclang-8-dev \
|
|
liblld-8-dev \
|
|
libicu-dev \
|
|
libreadline-dev \
|
|
ninja-build \
|
|
gperf \
|
|
git \
|
|
tzdata \
|
|
gperf \
|
|
cmake \
|
|
gdb
|
|
|
|
COPY build.sh /
|
|
CMD ["/bin/bash", "/build.sh"]
|