Pleroma + :whale: = :heart:
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 596B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/ash
  2. # shellcheck shell=dash
  3. set -e
  4. if [ -n "$BUILDTIME" ]; then
  5. echo "#> Preparing compilation..."
  6. mix local.rebar --force
  7. mix local.hex --force
  8. echo "#> Compiling..."
  9. mix deps.get
  10. mix compile
  11. exit 0
  12. fi
  13. echo "#> Applying customizations and patches.."
  14. rsync -av /custom.d/ /home/pleroma/pleroma/
  15. echo "#> Recompiling..."
  16. mix compile
  17. echo "#> Waiting until database is ready..."
  18. while ! pg_isready -U pleroma -d postgres://db:5432/pleroma -t 1; do
  19. sleep 1s
  20. done
  21. echo "#> Upgrading database..."
  22. mix ecto.migrate
  23. echo "#> Liftoff!"
  24. exec mix phx.server