Skip to content

Commit

Permalink
feat: upgrade ClickHouse to version 24.3.5.47.altinitystable
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton committed Oct 26, 2024
1 parent 8fd24d0 commit b7d02e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ services:
build:
context: ./clickhouse
args:
BASE_IMAGE: "altinity/clickhouse-server:23.8.11.29.altinitystable"
BASE_IMAGE: "altinity/clickhouse-server:24.3.5.47.altinitystable"
ulimits:
nofile:
soft: 262144
Expand Down
6 changes: 5 additions & 1 deletion install/upgrade-clickhouse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [[ -n "$(docker volume ls -q --filter name=sentry-clickhouse)" ]]; then
# Wait for clickhouse
wait_for_clickhouse

# In order to get to 23.8, we need to first upgrade go from 21.8 -> 22.8 -> 23.3 -> 23.8
# In order to get to 24.3, we need to first upgrade go from 21.8 -> 22.8 -> 23.3 -> 23.8 -> 24.3
version=$($dc exec clickhouse clickhouse-client -q 'SELECT version()')
if [[ "$version" == "21.8.13.1.altinitystable" || "$version" == "21.8.12.29.altinitydev.arm" ]]; then
$dc down clickhouse
Expand All @@ -28,6 +28,10 @@ if [[ -n "$(docker volume ls -q --filter name=sentry-clickhouse)" ]]; then
$dcb --build-arg BASE_IMAGE=altinity/clickhouse-server:23.3.19.33.altinitystable clickhouse
$dc up -d clickhouse
wait_for_clickhouse
$dc down clickhouse
$dcb --build-arg BASE_IMAGE=altinity/clickhouse-server:24.3.5.47.altinitystable clickhouse
$dc up -d clickhouse
wait_for_clickhouse
else
echo "Detected clickhouse version $version. Skipping upgrades!"
fi
Expand Down

0 comments on commit b7d02e4

Please sign in to comment.