Skip to content

Commit 0c2902e

Browse files
author
Michael Myaskovsky
committed
added local clickhouse server for testing
1 parent 4ca6048 commit 0c2902e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/test-warehouse.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ jobs:
8383
working-directory: ${{ env.TESTS_DIR }}
8484
run: docker compose -f docker-compose-trino.yml up -d
8585

86+
- name: Start Clickhouse
87+
if: inputs.warehouse-type == 'clickhouse'
88+
working-directory: ${{ env.TESTS_DIR }}
89+
run: docker compose up -d clickhouse
90+
8691
- name: Setup Python
8792
uses: actions/setup-python@v4
8893
with:

integration_tests/docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ services:
1212
volumes:
1313
- postgres:/var/lib/postgresql/data
1414

15+
clickhouse:
16+
image: clickhouse/clickhouse-server:latest
17+
container_name: clickhouse
18+
ports:
19+
- "8123:8123" # HTTP interface
20+
- "9000:9000" # Native TCP interface
21+
volumes:
22+
- ./clickhouse-data:/var/lib/clickhouse
23+
environment:
24+
CLICKHOUSE_DB: default
25+
CLICKHOUSE_USER: default
26+
CLICKHOUSE_PASSWORD: "default"
27+
ulimits:
28+
nofile:
29+
soft: 262144
30+
hard: 262144
31+
1532
pgadmin:
1633
image: dpage/pgadmin4
1734
ports:

0 commit comments

Comments
 (0)