mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
dbfb448290
There is logic regarding which keeper binary use to start keeper cluster in an integration test There 2 options: (1) standalone keeper binary (expected binary name clickhouse-keeper) (2) clickhouse binary with keeper inside Fixed: - option (1) didn't work since docker_compose_keeper.yaml didn't create target clickhouse-keeper at all - if clickhouse-keeper existed, option (1) was taken but clickhouse-keeper could be just a link to clickhouse binary (the link is created always during build if cmake option BUILD_STANDALONE_KEEPER is OFF)
102 lines
3.6 KiB
YAML
102 lines
3.6 KiB
YAML
version: '2.3'
|
|
services:
|
|
zoo1:
|
|
image: ${image:-clickhouse/integration-test}
|
|
restart: always
|
|
user: ${user:-}
|
|
volumes:
|
|
- type: bind
|
|
source: ${keeper_binary:-}
|
|
target: /usr/bin/clickhouse
|
|
- type: bind
|
|
source: ${keeper_binary:-}
|
|
target: /usr/bin/clickhouse-keeper
|
|
- type: bind
|
|
source: ${keeper_config_dir1:-}
|
|
target: /etc/clickhouse-keeper
|
|
- type: bind
|
|
source: ${keeper_logs_dir1:-}
|
|
target: /var/log/clickhouse-keeper
|
|
- type: ${keeper_fs:-tmpfs}
|
|
source: ${keeper_db_dir1:-}
|
|
target: /var/lib/clickhouse-keeper
|
|
entrypoint: "${keeper_cmd_prefix:-clickhouse keeper} --config=/etc/clickhouse-keeper/keeper_config1.xml --log-file=/var/log/clickhouse-keeper/clickhouse-keeper.log --errorlog-file=/var/log/clickhouse-keeper/clickhouse-keeper.err.log"
|
|
cap_add:
|
|
- SYS_PTRACE
|
|
- NET_ADMIN
|
|
- IPC_LOCK
|
|
- SYS_NICE
|
|
security_opt:
|
|
- label:disable
|
|
dns_opt:
|
|
- attempts:2
|
|
- timeout:1
|
|
- inet6
|
|
- rotate
|
|
zoo2:
|
|
image: ${image:-clickhouse/integration-test}
|
|
restart: always
|
|
user: ${user:-}
|
|
volumes:
|
|
- type: bind
|
|
source: ${keeper_binary:-}
|
|
target: /usr/bin/clickhouse
|
|
- type: bind
|
|
source: ${keeper_binary:-}
|
|
target: /usr/bin/clickhouse-keeper
|
|
- type: bind
|
|
source: ${keeper_config_dir2:-}
|
|
target: /etc/clickhouse-keeper
|
|
- type: bind
|
|
source: ${keeper_logs_dir2:-}
|
|
target: /var/log/clickhouse-keeper
|
|
- type: ${keeper_fs:-tmpfs}
|
|
source: ${keeper_db_dir2:-}
|
|
target: /var/lib/clickhouse-keeper
|
|
entrypoint: "${keeper_cmd_prefix:-clickhouse keeper} --config=/etc/clickhouse-keeper/keeper_config2.xml --log-file=/var/log/clickhouse-keeper/clickhouse-keeper.log --errorlog-file=/var/log/clickhouse-keeper/clickhouse-keeper.err.log"
|
|
cap_add:
|
|
- SYS_PTRACE
|
|
- NET_ADMIN
|
|
- IPC_LOCK
|
|
- SYS_NICE
|
|
security_opt:
|
|
- label:disable
|
|
dns_opt:
|
|
- attempts:2
|
|
- timeout:1
|
|
- inet6
|
|
- rotate
|
|
zoo3:
|
|
image: ${image:-clickhouse/integration-test}
|
|
restart: always
|
|
user: ${user:-}
|
|
volumes:
|
|
- type: bind
|
|
source: ${keeper_binary:-}
|
|
target: /usr/bin/clickhouse
|
|
- type: bind
|
|
source: ${keeper_binary:-}
|
|
target: /usr/bin/clickhouse-keeper
|
|
- type: bind
|
|
source: ${keeper_config_dir3:-}
|
|
target: /etc/clickhouse-keeper
|
|
- type: bind
|
|
source: ${keeper_logs_dir3:-}
|
|
target: /var/log/clickhouse-keeper
|
|
- type: ${keeper_fs:-tmpfs}
|
|
source: ${keeper_db_dir3:-}
|
|
target: /var/lib/clickhouse-keeper
|
|
entrypoint: "${keeper_cmd_prefix:-clickhouse keeper} --config=/etc/clickhouse-keeper/keeper_config3.xml --log-file=/var/log/clickhouse-keeper/clickhouse-keeper.log --errorlog-file=/var/log/clickhouse-keeper/clickhouse-keeper.err.log"
|
|
cap_add:
|
|
- SYS_PTRACE
|
|
- NET_ADMIN
|
|
- IPC_LOCK
|
|
- SYS_NICE
|
|
security_opt:
|
|
- label:disable
|
|
dns_opt:
|
|
- attempts:2
|
|
- timeout:1
|
|
- inet6
|
|
- rotate
|