2018-05-12 22:08:53 +00: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
|
|
|
|
```
|
|
|
|
|
2020-04-01 23:51:21 +00:00
|
|
|
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.
|
2018-05-12 22:08:53 +00:00
|
|
|
(You must close all your sessions. For example, restart your computer.)
|
|
|
|
|
2020-04-01 23:51:21 +00:00
|
|
|
Build results are available in `build_docker` directory at top level of your working copy.
|
2018-05-12 22:08:53 +00:00
|
|
|
It builds only binaries, not packages.
|
|
|
|
|
|
|
|
For example, run server:
|
|
|
|
```
|
2020-04-03 15:14:31 +00:00
|
|
|
cd $(git rev-parse --show-toplevel)/src/Server
|
2020-04-01 23:51:21 +00:00
|
|
|
$(git rev-parse --show-toplevel)/docker/builder/programs/clickhouse server --config-file $(git rev-parse --show-toplevel)/programs/server/config.xml
|
2018-05-12 22:08:53 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Run client:
|
|
|
|
```
|
2020-04-01 23:51:21 +00:00
|
|
|
$(git rev-parse --show-toplevel)/docker/builder/programs/clickhouse client
|
2018-05-12 22:08:53 +00:00
|
|
|
```
|