drydock/entrypoint.sh

13 lines
400 B
Bash
Executable File

#!/bin/bash
set -ex
CMD="drydock"
PORT=${PORT:-9000}
if [ "$1" = 'server' ]; then
# exec uwsgi --http :${PORT} -w drydock_provisioner.drydock --callable drydock --enable-threads -L --pyargv "--config-file /etc/drydock/drydock.conf"
exec uwsgi --http :${PORT} --paste config:/etc/drydock/api-paste.ini --enable-threads -L --pyargv "--config-file /etc/drydock/drydock.conf"
fi
exec ${CMD} $@