Skip to content

Commit

Permalink
get rid of -it option
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdeng123 committed May 2, 2024
1 parent 43f2fa6 commit 11b228a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install/upgrade-clickhouse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
echo "${_group}Upgrading Clickhouse ..."

# First check to see if user is upgrading by checking for existing clickhouse volume
if [[ -n "$(docker volume ls -q --filter name=sentry-clickhouse)" ]]; then
# In order to get to 23.8, we need to first upgrade go from 21.8 -> 22.8 -> 23.3 -> 23.8
$dc up -d clickhouse
version=$($dc exec clickhouse clickhouse-client -q 'SELECT version()')
if [[ "$version" == "22.8.15.25.altinitystable" || "$version" == "21.8.12.29.altinitydev.arm" ]]; then
$dc down clickhouse
$dcb --build-arg BASE_IMAGE=altinity/clickhouse-server:22.8.15.25.altinitystable clickhouse
$dc up -d clickhouse
$dc down clickhouse
$dcb --build-arg BASE_IMAGE=altinity/clickhouse-server:23.3.19.33.altinitystable clickhouse
fi
$dc down clickhouse
fi

0 comments on commit 11b228a

Please sign in to comment.