2018-10-04 17:07:00 +00:00
|
|
|
Allow to build ClickHouse in Docker for different platforms with different
|
|
|
|
compilers and build settings. Correctly configured Docker daemon is single dependency.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
2022-02-25 13:13:32 +00:00
|
|
|
Build deb package with `clang-14` in `debug` mode:
|
2018-10-04 17:07:00 +00:00
|
|
|
```
|
|
|
|
$ mkdir deb/test_output
|
2023-07-04 11:07:10 +00:00
|
|
|
$ ./packager --output-dir deb/test_output/ --package-type deb --compiler=clang-14 --build-type=debug
|
2018-10-04 17:07:00 +00:00
|
|
|
$ ls -l deb/test_output
|
2022-02-25 13:13:32 +00:00
|
|
|
-rw-r--r-- 1 root root 3730 clickhouse-client_22.2.2+debug_all.deb
|
|
|
|
-rw-r--r-- 1 root root 84221888 clickhouse-common-static_22.2.2+debug_amd64.deb
|
|
|
|
-rw-r--r-- 1 root root 255967314 clickhouse-common-static-dbg_22.2.2+debug_amd64.deb
|
|
|
|
-rw-r--r-- 1 root root 14940 clickhouse-server_22.2.2+debug_all.deb
|
|
|
|
-rw-r--r-- 1 root root 340206010 clickhouse-server-base_22.2.2+debug_amd64.deb
|
|
|
|
-rw-r--r-- 1 root root 7900 clickhouse-server-common_22.2.2+debug_all.deb
|
2018-10-04 17:07:00 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2022-02-25 13:13:32 +00:00
|
|
|
Build ClickHouse binary with `clang-14` and `address` sanitizer in `relwithdebuginfo`
|
2018-10-04 17:07:00 +00:00
|
|
|
mode:
|
|
|
|
```
|
|
|
|
$ mkdir $HOME/some_clickhouse
|
2022-02-25 13:13:32 +00:00
|
|
|
$ ./packager --output-dir=$HOME/some_clickhouse --package-type binary --compiler=clang-14 --sanitizer=address
|
2018-10-04 17:07:00 +00:00
|
|
|
$ ls -l $HOME/some_clickhouse
|
|
|
|
-rwxr-xr-x 1 root root 787061952 clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-benchmark -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-clang -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-client -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-compressor -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-copier -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-extract-from-config -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-format -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-lld -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-local -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-obfuscator -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-odbc-bridge -> clickhouse
|
|
|
|
lrwxrwxrwx 1 root root 10 clickhouse-server -> clickhouse
|
|
|
|
```
|