Skip to content

Commit 0e7f366

Browse files
cnkkapata
andauthored
Upgrade clickhouse server (#5947)
* Upgrade clickhouse server * Update ClickHouse image version in workflow * Upgrade ClickHouse Docker image to version 25.11.5.8 Updated the ClickHouse Docker image version for production. * Apply suggestion from @apata Co-authored-by: Artur Pata <artur.pata@gmail.com> --------- Co-authored-by: Artur Pata <artur.pata@gmail.com>
1 parent b257898 commit 0e7f366

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/elixir.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ jobs:
3939
--health-timeout 5s
4040
--health-retries 5
4141
clickhouse:
42-
image: clickhouse/clickhouse-server:24.12.2.29-alpine
42+
image: clickhouse/clickhouse-server:25.11.5.8-alpine
4343
ports:
4444
- 8123:8123
4545
env:
46+
CLICKHOUSE_SKIP_USER_SETUP: 1
4647
options: >-
4748
--health-cmd nc -zw3 localhost 8124
4849
--health-interval 10s

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ install: ## Run the initial setup
2121
server: ## Start the web server
2222
mix phx.server
2323

24-
CH_FLAGS ?= --detach -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 --name plausible_clickhouse
24+
CH_FLAGS ?= --detach -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 --name plausible_clickhouse --env CLICKHOUSE_SKIP_USER_SETUP=1
2525

2626
clickhouse: ## Start a container with a recent version of clickhouse
2727
docker run $(CH_FLAGS) --network host --volume=$$PWD/.clickhouse_db_vol:/var/lib/clickhouse clickhouse/clickhouse-server:latest-alpine
@@ -30,7 +30,7 @@ clickhouse-client: ## Connect to clickhouse
3030
docker exec -it plausible_clickhouse clickhouse-client -d plausible_events_db
3131

3232
clickhouse-prod: ## Start a container with the same version of clickhouse as the one in prod
33-
docker run $(CH_FLAGS) --volume=$$PWD/.clickhouse_db_vol_prod:/var/lib/clickhouse clickhouse/clickhouse-server:24.12.2.29-alpine
33+
docker run $(CH_FLAGS) --volume=$$PWD/.clickhouse_db_vol_prod:/var/lib/clickhouse clickhouse/clickhouse-server:25.11.5.8-alpine
3434

3535
clickhouse-stop: ## Stop and remove the clickhouse container
3636
docker stop plausible_clickhouse && docker rm plausible_clickhouse

0 commit comments

Comments
 (0)