A declarative framework for resilient Kubernetes deployment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

entrypoint.sh 792B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. set -ex
  3. PORT=${PORT:-9000}
  4. UWSGI_TIMEOUT=${UWSGI_TIMEOUT:-300}
  5. PROMENADE_THREADS=${PROMENADE_THREADS:-1}
  6. PROMENADE_WORKERS=${PROMENADE_WORKERS:-4}
  7. if [ "$1" = 'server' ]; then
  8. exec uwsgi \
  9. --http ":${PORT}" \
  10. --http-timeout "${UWSGI_TIMEOUT}" \
  11. --harakiri "${UWSGI_TIMEOUT}" \
  12. --socket-timeout "${UWSGI_TIMEOUT}" \
  13. --harakiri-verbose \
  14. -b 32768 \
  15. --lazy-apps \
  16. --master \
  17. --thunder-lock \
  18. --die-on-term \
  19. -z "${UWSGI_TIMEOUT}" \
  20. --paste config:/etc/promenade/api-paste.ini \
  21. --enable-threads \
  22. --threads "${PROMENADE_THREADS}" \
  23. --workers "${PROMENADE_WORKERS}" \
  24. --logger "null file:/dev/null" \
  25. --log-route "null health"
  26. fi
  27. exec ${@}