Skip to content

Instantly share code, notes, and snippets.

@dooman87
Created December 28, 2016 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dooman87/334b45e1dd0ed0f1aa95c39e73de1f25 to your computer and use it in GitHub Desktop.
Save dooman87/334b45e1dd0ed0f1aa95c39e73de1f25 to your computer and use it in GitHub Desktop.
renderer/entrypoint.sh
#!/usr/bin/env bash
sh /scripts/compile_style.sh
while [ ! -e /var/lib/postgresql/data/DB_INITED ]
do
sleep 5
echo "Waiting while database is initializing..."
done
#Have to wait because once DB created then osm2pgsql restarting postgres.
#TODO: Using pg_isready
echo "DB successfully created, waiting for restart"
sleep 60
echo "Starting renderer"
sh /scripts/run_render.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment