skyline-apiserver/container/start_service.sh
zhu.boxiang 8cb60f0833 chore: Move skyline_apiserver out of libs
1. move skyline_apiserver out of libs
2. remove libs folder
3. remove old skyline folder
4. adjust zull, devstack and dockerfile

Change-Id: I27a4babd3df077d1dfc7555f67a6ea618d4b2966
2022-05-18 17:21:00 +08:00

21 lines
429 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
# kolla_set_configs
echo "/usr/local/bin/gunicorn -c /etc/skyline/gunicorn.py skyline_apiserver.main:app" >/run_command
mapfile -t CMD < <(tail /run_command | xargs -n 1)
# kolla_extend_start
if [[ "${!KOLLA_BOOTSTRAP[*]}" ]]; then
cd /skyline-apiserver/
make db_sync
exit 0
fi
skyline-nginx-generator -o /etc/nginx/nginx.conf
nginx
echo "Running command: ${CMD[*]}"
exec "${CMD[@]}"