continuous-integration-images/clickhouse
Reinaldy Rafli 88b4671821
clickhouse
2023-02-07 09:39:11 +07:00
..
Dockerfile.node1 clickhouse 2023-02-07 09:39:11 +07:00
Dockerfile.node2 clickhouse 2023-02-07 09:39:11 +07:00
Dockerfile.node3 clickhouse 2023-02-07 09:39:11 +07:00
README.md clickhouse 2023-02-07 09:39:11 +07:00
local.xml clickhouse 2023-02-07 09:39:11 +07:00
macros1.xml clickhouse 2023-02-07 09:39:11 +07:00
macros2.xml clickhouse 2023-02-07 09:39:11 +07:00
macros3.xml clickhouse 2023-02-07 09:39:11 +07:00
wait-for-it.sh clickhouse 2023-02-07 09:39:11 +07:00
wait-zookeeper.sh clickhouse 2023-02-07 09:39:11 +07:00

README.md

ClickHouse

Zookeper is required for running the cluster. If you'd like to only run a single node of ClickHouse, please use the ClickHouse image directly.

Github Actions workflow file sample:

name: Your CI

on:
    # ...

jobs:
  job-name:
    name: Job Name
    services:  
      zookeeper:
        image: zookeeper:3.8.0
        options: >-
          --health-cmd "nc -nz 127.0.0.1 2181"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 10
          --health-start-period 30s
          --hostname zookeeper          
      clickhouse_node1:
        image: ghcr.io/aldy505-clickhouse-node1
        options: >-
          --health-cmd "wget --spider -q localhost:8123/ping"
          --health-interval 15s
          --health-timeout 10s
          --health-retries 10
          --health-start-period 60s
          --hostname clickhouse_node1
          --restart on-failure:10          
      clickhouse_node2:
        image: ghcr.io/aldy505-clickhouse-node2
        options: >-
          --hostname clickhouse_node2
          --restart on-failure:10          
      clickhouse_node3:
        image: ghcr.io/aldy505-clickhouse-node3
        options: >-
          --hostname clickhouse_node3
          --restart on-failure:10          

Cluster name: ci_cluster

Sample connection URL: clickhouse://default:@clickhouse_node1:9000,clickhouse_node2:9000,clickhouse_node3:9000/default?dial_timeout=30000ms&max_execution_time=60&debug=false