1. merge skyline-nginx into skyline-apiserver Change-Id: Ib2f31435ce69c52ea2c27d63177f9c8f936c033e
21 lines
442 B
Bash
Executable File
21 lines
442 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/libs/skyline-apiserver/
|
|
make db_sync
|
|
exit 0
|
|
fi
|
|
|
|
skyline-nginx-generator -o /etc/nginx/nginx.conf
|
|
nginx
|
|
|
|
echo "Running command: ${CMD[*]}"
|
|
exec "${CMD[@]}"
|