From 996945b5cd66ea85df4a04cfb9822ec256ccfe2a Mon Sep 17 00:00:00 2001 From: Bryan Ciaraldi Date: Mon, 7 Oct 2024 16:32:32 -0700 Subject: [PATCH] revert the service names --- bin/check_kafka_clickhouse_up | 2 +- bin/e2e-test-runner | 4 ++-- bin/start | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/check_kafka_clickhouse_up b/bin/check_kafka_clickhouse_up index 24cf62d139e17..edf45a723ad2a 100755 --- a/bin/check_kafka_clickhouse_up +++ b/bin/check_kafka_clickhouse_up @@ -9,5 +9,5 @@ done # Check ClickHouse within Docker Compose network using the service name 'clickhouse' while true; do - curl -s -o /dev/null -I 'http://clickhouse:8123/' && break || echo 'Checking ClickHouse status...' && sleep 1 + curl -s -o /dev/null -I 'http://localhost:8123/' && break || echo 'Checking ClickHouse status...' && sleep 1 done diff --git a/bin/e2e-test-runner b/bin/e2e-test-runner index 56db46c1f2c3a..da768f6fce3a7 100755 --- a/bin/e2e-test-runner +++ b/bin/e2e-test-runner @@ -77,8 +77,8 @@ recreateDatabases() { createdb $DATABASE # Delete and recreate clickhouse database - echo 'DROP DATABASE if exists posthog_test' | curl 'http://clickhouse:8123/' --data-binary @- - echo 'create database posthog_test' | curl 'http://clickhouse:8123/' --data-binary @- + echo 'DROP DATABASE if exists posthog_test' | curl 'http://localhost:8123/' --data-binary @- + echo 'create database posthog_test' | curl 'http://localhost:8123/' --data-binary @- } migrateDatabases() { diff --git a/bin/start b/bin/start index 6ab87d46b2e30..171656ed0e3ec 100755 --- a/bin/start +++ b/bin/start @@ -14,7 +14,7 @@ service_warning() { } nc -z localhost 9092 || ( service_warning 'Kafka'; bin/check_kafka_clickhouse_up ) -curl -s 'http://clickhouse:8123/ping' || ( service_warning 'ClickHouse'; bin/check_kafka_clickhouse_up ) +curl -s 'http://localhost:8123/ping' || ( service_warning 'ClickHouse'; bin/check_kafka_clickhouse_up ) [ ! -f ./share/GeoLite2-City.mmdb ] && ( curl -L "https://mmdbcdn.posthog.net/" --http1.1 | brotli --decompress --output=./share/GeoLite2-City.mmdb )