Skip to content

Commit

Permalink
WHY backwards incompatibility was back ported from 23.10 to 23.3 and …
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Mar 9, 2024
1 parent 2f597a5 commit 31d31af
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Expand Up @@ -4,6 +4,7 @@ services:
clickhouse:
image: ${CLICKHOUSE_IMAGE:-clickhouse/clickhouse-server}:${CLICKHOUSE_VERSION:-23.3}
volumes:
- "${CLICKHOUSE_TESTS_DIR}/docker-compose/custom_entrypoint.sh:/custom_entrypoint.sh"
- "${CLICKHOUSE_TESTS_DIR}/docker-compose/dynamic_settings.sh:/docker-entrypoint-initdb.d/dynamic_settings.sh"
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/ssl:/etc/clickhouse-server/ssl"
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse/config.d/common.xml:/etc/clickhouse-server/config.d/common.xml"
Expand All @@ -20,9 +21,17 @@ services:
timeout: 2s
retries: 40
start_period: 2s
# to avoid backward incompatibility ;(
# https://t.me/clickhouse_ru/359960
# https://t.me/clickhouse_ru/359968
# https://t.me/clickhouse_ru/362378
entrypoint:
- "/custom_entrypoint.sh"
environment:
CLICKHOUSE_VERSION: ${CLICKHOUSE_VERSION:-23.3}
CLICKHOUSE_ALWAYS_RUN_INITDB_SCRIPTS: "true"
cap_add:
- SYS_PTRACE
- SYS_NICE
security_opt:
- label:disable
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# to avoid backward incompatibility ;(
# https://t.me/clickhouse_ru/359960
# https://t.me/clickhouse_ru/359968
# https://t.me/clickhouse_ru/362378

if [ $# -ne 0 ]; then
/entrypoint.sh "$@"
else
for script in /docker-entrypoint-initdb.d/*.sh; do
$script
done
/entrypoint.sh
fi

0 comments on commit 31d31af

Please sign in to comment.