Created
August 27, 2021 13:36
-
-
Save hunzo/57d3c9a363d55a003a49eace056e75b8 to your computer and use it in GitHub Desktop.
bashscriptKong install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Start kong database | |
docker-compose up -d kong-db | |
# Check database start finished | |
export CHECK="starting" | |
while [ "$CHECK" != "healthy" ] | |
do | |
CHECK=$(docker inspect --format {{.State.Health.Status}} kong-db) | |
sleep 3 | |
echo "db state = $CHECK" | |
done | |
# Kong database migration | |
echo "Start Database Migrations" | |
echo "-------------------------" | |
docker-compose run --rm kong kong migrations bootstrap --vv | |
# Start kong | |
echo "Start Kong" | |
echo "-------------------------" | |
docker-compose up -d kong | |
# Konga Database migrations | |
echo "Start Konga database migrations" | |
echo "-------------------------" | |
docker-compose run konga-init | |
# Start Konga | |
echo "Start Konga" | |
echo "-------------------------" | |
docker-compose up -d konga | |
echo "Installed Successfully" | |
echo "kong admin: http://localhost:8001" | |
echo "kong service: http://localhost:8000" | |
echo "konga: http://localhost:1337" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment