mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
aab8e43d7d
* Load clickhouse/kafka async and wait * Change permissions * Add to cloud tests * move
16 lines
270 B
Bash
Executable File
16 lines
270 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Waiting for Kafka and Clickhouse"
|
|
|
|
# Check Kafka
|
|
while true; do
|
|
nc -z localhost 9092 && break || echo "Trying kafka..." && sleep 1
|
|
done
|
|
|
|
# Check Clickhouse
|
|
while true; do
|
|
wget -nv -t1 --spider 'http://localhost:8123/' && break || sleep 1
|
|
done
|
|
|