File size: 293 Bytes
7ed2970
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1d9404d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# wait-for-qdrant.sh

set -e

host="$1"
shift
cmd="$@"

# Loop until the Qdrant health check endpoint is reachable
until curl -s -f "$host/healthz" > /dev/null; do
  >&2 echo "Qdrant is unavailable - sleeping"
  sleep 1
done

>&2 echo "Qdrant is up - executing command"
    exec "$@"