ClickHouse/docker/packager/binary/Dockerfile
2019-03-21 11:02:45 +03:00

38 lines
1.2 KiB
Docker

FROM ubuntu:18.04
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 apt-get update -y \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get install --yes --no-install-recommends \
bash \
cmake \
curl \
gcc-7 \
g++-7 \
gcc-8 \
g++-8 \
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 \
git \
tzdata
CMD mkdir -p build/build_result && cd build/build_result && cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSANITIZE=$SANITIZER $CMAKE_FLAGS && ninja && mv ./dbms/programs/clickhouse* /output