Makefile target cleanup, minor improvements (#821)

* allow postgres image to be overwritten with an env var
* allow DIFF_MODE var to be overwritten with an env var
* add /mapping and /cache dirs into tools image
* make `build-sql` target explicit rather than relying on a filename
* `tools-dev` will open a shell in a docker to experiment and debug (instead of `import-sql-dev` and `import-osm-dev`)
* separated `start-maputnik` from `start-postserve`
* renamed `clean-docker` into `db-destroy` to make it more explicit
* cleaner `db-start`, `db-stop`, `db-destroy` targets
* better output messages
This commit is contained in:
Yuri Astrakhan
2020-04-22 11:15:20 -04:00
committed by GitHub
parent 8f9770e546
commit 21053e4a5f
3 changed files with 61 additions and 28 deletions

View File

@@ -116,7 +116,7 @@ fi
echo " "
echo "-------------------------------------------------------------------------------------"
echo "====> : Stopping running services & removing old containers"
make clean-docker
make db-destroy
echo " "
echo "-------------------------------------------------------------------------------------"
@@ -298,8 +298,8 @@ echo "We saved the log file to $log_file ( for debugging ) You can compare with
echo " "
echo "Start experimenting! And check the QUICKSTART.MD file!"
echo " "
echo "* Use make start-postserve to explore tile generation on request"
echo "* Use make start-tileserver to view pre-generated tiles"
echo "* Use make maputnik-start to explore tile generation on request"
echo "* Use make tileserver-start to view pre-generated tiles"
echo " "
echo "Available help commands (make help) "
make help