From c6068d7c50cfe897e0bfccd16825ef6390511f54 Mon Sep 17 00:00:00 2001 From: zvonand Date: Wed, 7 Apr 2021 14:24:22 +0300 Subject: [PATCH] Style fix --- .../docker-compose/clickhouse-service.yml | 50 ++++---- .../docker-compose/docker-compose.yml | 110 +++++++++--------- .../docker-compose/zookeeper-service.yml | 30 ++--- 3 files changed, 94 insertions(+), 96 deletions(-) diff --git a/tests/testflows/datetime64_extended_range/docker-compose/clickhouse-service.yml b/tests/testflows/datetime64_extended_range/docker-compose/clickhouse-service.yml index 9787b37abb..155028369b 100644 --- a/tests/testflows/datetime64_extended_range/docker-compose/clickhouse-service.yml +++ b/tests/testflows/datetime64_extended_range/docker-compose/clickhouse-service.yml @@ -1,28 +1,28 @@ version: '2.3' services: - clickhouse: - image: yandex/clickhouse-integration-test - expose: - - "9000" - - "9009" - - "8123" - volumes: - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.d:/etc/clickhouse-server/config.d" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/users.d/:/etc/clickhouse-server/users.d" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/ssl:/etc/clickhouse-server/ssl" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.xml:/etc/clickhouse-server/config.xml" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/users.xml:/etc/clickhouse-server/users.xml" - - "${CLICKHOUSE_TESTS_SERVER_BIN_PATH:-/usr/bin/clickhouse}:/usr/bin/clickhouse" - - "${CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH:-/usr/bin/clickhouse-odbc-bridge}:/usr/bin/clickhouse-odbc-bridge" - entrypoint: bash -c "clickhouse server --config-file=/etc/clickhouse-server/config.xml --log-file=/var/log/clickhouse-server/clickhouse-server.log --errorlog-file=/var/log/clickhouse-server/clickhouse-server.err.log" - healthcheck: - test: clickhouse client --query='select 1' - interval: 3s - timeout: 2s - retries: 40 - start_period: 2s - cap_add: - - SYS_PTRACE - security_opt: - - label:disable + clickhouse: + image: yandex/clickhouse-integration-test + expose: + - "9000" + - "9009" + - "8123" + volumes: + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.d:/etc/clickhouse-server/config.d" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/users.d/:/etc/clickhouse-server/users.d" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/ssl:/etc/clickhouse-server/ssl" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.xml:/etc/clickhouse-server/config.xml" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/users.xml:/etc/clickhouse-server/users.xml" + - "${CLICKHOUSE_TESTS_SERVER_BIN_PATH:-/usr/bin/clickhouse}:/usr/bin/clickhouse" + - "${CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH:-/usr/bin/clickhouse-odbc-bridge}:/usr/bin/clickhouse-odbc-bridge" + entrypoint: bash -c "clickhouse server --config-file=/etc/clickhouse-server/config.xml --log-file=/var/log/clickhouse-server/clickhouse-server.log --errorlog-file=/var/log/clickhouse-server/clickhouse-server.err.log" + healthcheck: + test: clickhouse client --query='select 1' + interval: 3s + timeout: 2s + retries: 40 + start_period: 2s + cap_add: + - SYS_PTRACE + security_opt: + - label:disable diff --git a/tests/testflows/datetime64_extended_range/docker-compose/docker-compose.yml b/tests/testflows/datetime64_extended_range/docker-compose/docker-compose.yml index efd6018080..665e355d51 100644 --- a/tests/testflows/datetime64_extended_range/docker-compose/docker-compose.yml +++ b/tests/testflows/datetime64_extended_range/docker-compose/docker-compose.yml @@ -1,63 +1,61 @@ version: '2.3' services: - zookeeper: - extends: - file: zookeeper-service.yml - service: zookeeper + zookeeper: + extends: + file: zookeeper-service.yml + service: zookeeper - clickhouse1: - extends: - file: clickhouse-service.yml - service: clickhouse - hostname: clickhouse1 - volumes: - - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse1/database/:/var/lib/clickhouse/" - - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse1/logs/:/var/log/clickhouse-server/" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/config.d:/etc/clickhouse-server/config.d" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/users.d:/etc/clickhouse-server/users.d" - depends_on: - zookeeper: - condition: service_healthy + clickhouse1: + extends: + file: clickhouse-service.yml + service: clickhouse + hostname: clickhouse1 + volumes: + - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse1/database/:/var/lib/clickhouse/" + - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse1/logs/:/var/log/clickhouse-server/" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/config.d:/etc/clickhouse-server/config.d" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/users.d:/etc/clickhouse-server/users.d" + depends_on: + zookeeper: + condition: service_healthy - clickhouse2: - extends: - file: clickhouse-service.yml - service: clickhouse - hostname: clickhouse2 - volumes: - - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse2/database/:/var/lib/clickhouse/" - - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse2/logs/:/var/log/clickhouse-server/" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse2/config.d:/etc/clickhouse-server/config.d" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse2/users.d:/etc/clickhouse-server/users.d" - depends_on: - zookeeper: - condition: service_healthy + clickhouse2: + extends: + file: clickhouse-service.yml + service: clickhouse + hostname: clickhouse2 + volumes: + - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse2/database/:/var/lib/clickhouse/" + - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse2/logs/:/var/log/clickhouse-server/" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse2/config.d:/etc/clickhouse-server/config.d" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse2/users.d:/etc/clickhouse-server/users.d" + depends_on: + zookeeper: + condition: service_healthy - clickhouse3: - extends: - file: clickhouse-service.yml - service: clickhouse - hostname: clickhouse3 - volumes: - - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse3/database/:/var/lib/clickhouse/" - - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse3/logs/:/var/log/clickhouse-server/" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse3/config.d:/etc/clickhouse-server/config.d" - - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse3/users.d:/etc/clickhouse-server/users.d" - depends_on: - zookeeper: - condition: service_healthy + clickhouse3: + extends: + file: clickhouse-service.yml + service: clickhouse + hostname: clickhouse3 + volumes: + - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse3/database/:/var/lib/clickhouse/" + - "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse3/logs/:/var/log/clickhouse-server/" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse3/config.d:/etc/clickhouse-server/config.d" + - "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse3/users.d:/etc/clickhouse-server/users.d" + depends_on: + zookeeper: + condition: service_healthy - # dummy service which does nothing, but allows to postpone - # 'docker-compose up -d' till all dependecies will go healthy - all_services_ready: - image: hello-world - depends_on: - clickhouse1: - condition: service_healthy - clickhouse2: - condition: service_healthy - clickhouse3: - condition: service_healthy - zookeeper: - condition: service_healthy + all_services_ready: + image: hello-world + depends_on: + clickhouse1: + condition: service_healthy + clickhouse2: + condition: service_healthy + clickhouse3: + condition: service_healthy + zookeeper: + condition: service_healthy diff --git a/tests/testflows/datetime64_extended_range/docker-compose/zookeeper-service.yml b/tests/testflows/datetime64_extended_range/docker-compose/zookeeper-service.yml index f3df33358b..063b4307f1 100644 --- a/tests/testflows/datetime64_extended_range/docker-compose/zookeeper-service.yml +++ b/tests/testflows/datetime64_extended_range/docker-compose/zookeeper-service.yml @@ -1,18 +1,18 @@ version: '2.3' services: - zookeeper: - image: zookeeper:3.4.12 - expose: - - "2181" - environment: - ZOO_TICK_TIME: 500 - ZOO_MY_ID: 1 - healthcheck: - test: echo stat | nc localhost 2181 - interval: 3s - timeout: 2s - retries: 5 - start_period: 2s - security_opt: - - label:disable + zookeeper: + image: zookeeper:3.4.12 + expose: + - "2181" + environment: + ZOO_TICK_TIME: 500 + ZOO_MY_ID: 1 + healthcheck: + test: echo stat | nc localhost 2181 + interval: 3s + timeout: 2s + retries: 5 + start_period: 2s + security_opt: + - label:disable