diff --git a/src/sentry/conf/server.py b/src/sentry/conf/server.py index d0319e11068007..f9562382bdd4e9 100644 --- a/src/sentry/conf/server.py +++ b/src/sentry/conf/server.py @@ -9,6 +9,7 @@ import sys import tempfile from datetime import timedelta +from platform import platform as pf from urllib.parse import urlparse from django.conf.global_settings import * # NOQA @@ -1697,6 +1698,8 @@ def build_cdc_postgres_init_db_volume(settings): ) +APPLE_ARM64 = pf().startswith("mac") and pf().endswith("arm64-arm-64bit") + SENTRY_DEVSERVICES = { "redis": lambda settings, options: ( { @@ -1780,7 +1783,11 @@ def build_cdc_postgres_init_db_volume(settings): ), "clickhouse": lambda settings, options: ( { - "image": "yandex/clickhouse-server:20.3.9.70", + # altinity provides clickhouse support to other companies + # Official support: https://github.com/ClickHouse/ClickHouse/issues/22222 + "image": "altinity/clickhouse-server:21.6.1.6734-testing-arm" + if APPLE_ARM64 + else "yandex/clickhouse-server:20.3.9.70", "pull": True, "ports": {"9000/tcp": 9000, "9009/tcp": 9009, "8123/tcp": 8123}, "ulimits": [{"name": "nofile", "soft": 262144, "hard": 262144}],