didi-lot2-backend/backend/services/gateway-auth-layer/didiKong/entrypoint.sh
2026-07-10 03:39:53 -07:00

21 lines
No EOL
520 B
Bash

#!/bin/bash
# Start Kong in the background
/docker-entrypoint.sh kong docker-start &
KONG_PID=$!
# Wait for Kong to be ready
echo "Waiting for Kong to start..."
until kong health; do
sleep 2
done
echo "Kong is ready!"
echo "Configuration should already be imported by migrations container."
# Check current services count
SERVICE_COUNT=$(curl -s http://localhost:8001/services 2>/dev/null | grep -o '"id"' | wc -l)
echo "Current services in Kong: $SERVICE_COUNT"
# Keep Kong running in foreground
wait $KONG_PID