ClickHouse/docker/builder
2021-11-26 10:55:41 +01:00
..
build.sh make changes analog to https://github.com/ClickHouse/ClickHouse/pull/20495/files but for clang-13 2021-09-09 23:51:47 +03:00
Dockerfile Make archive.ubuntu.com mirror configurable for build 2021-11-26 10:55:41 +01:00
Makefile Added clang-8 to docker builder 2019-08-11 12:30:01 +03:00
README.md dbms/ → src/ 2020-04-03 18:14:31 +03:00

Allows to build ClickHouse in Docker. This is useful if you have an old OS distribution and you don't want to build fresh gcc or clang from sources.

Usage:

Prepare image:

make image

Run build:

make build

Before run, ensure that your user has access to docker: To check, that you have access to Docker, run docker ps. If not, you must add this user to docker group: sudo usermod -aG docker $USER and relogin. (You must close all your sessions. For example, restart your computer.)

Build results are available in build_docker directory at top level of your working copy. It builds only binaries, not packages.

For example, run server:

cd $(git rev-parse --show-toplevel)/src/Server
$(git rev-parse --show-toplevel)/docker/builder/programs/clickhouse server --config-file $(git rev-parse --show-toplevel)/programs/server/config.xml

Run client:

$(git rev-parse --show-toplevel)/docker/builder/programs/clickhouse client