docker-entrypoint.sh 454 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -ex
  3. # Make sure to always start all the background services
  4. service postgresql start
  5. service redis-server start
  6. service memcached start
  7. service postfix start
  8. if [ "$1" = 'bootstrap' ]; then
  9. SENTRY_LIGHT_BUILD=1 pip install -vvv -e .[dev,tests]
  10. npm install
  11. sentry init $SENTRY_CONF
  12. sentry upgrade --noinput
  13. sentry createuser --email=root@localhost --password=admin --superuser --no-input
  14. echo "done" && exit 0
  15. fi
  16. exec "$@"