livrare lot 2
This commit is contained in:
commit
8ecc78e729
763 changed files with 164593 additions and 0 deletions
21
backend/services/gateway-auth-layer/didiKong/entrypoint.sh
Normal file
21
backend/services/gateway-auth-layer/didiKong/entrypoint.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue