2024-03-15 02:26:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Start postgress
|
|
|
|
|
docker-entrypoint.sh postgres &
|
|
|
|
|
|
|
|
|
|
# Wait postgress
|
2024-03-15 03:05:11 +00:00
|
|
|
until pg_isready --host=127.0.0.1; do sleep 1 && echo "waiting for postgres"; done
|
2024-03-15 02:26:41 +00:00
|
|
|
|
|
|
|
|
# Start MaxKB
|
|
|
|
|
python /opt/maxkb/app/main.py start &
|
|
|
|
|
|
|
|
|
|
# Wait for any process to exit
|
|
|
|
|
wait -n
|
|
|
|
|
|
|
|
|
|
# Exit with status of process that exited first
|
|
|
|
|
exit $?
|