From d205f4a4330c0c9217c74ad292a00ee7509a16cc Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 1 Sep 2021 08:18:06 -0400 Subject: [PATCH] Fix Ctrl+C when generating tiles (#1205) Adding -T fixes the issue when users are unable to stop tile genartion with ctrl+c For some reason it doesn't work without it, even though the process of building and running both docker images is the same. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 638a372..72fcd23 100644 --- a/Makefile +++ b/Makefile @@ -430,7 +430,8 @@ generate-tiles: all start-db generate-tiles-pg: all start-db @echo "Generating tiles into $(MBTILES_LOCAL_FILE) (will delete if already exists) using PostGIS ST_MVT()..." @rm -rf "$(MBTILES_LOCAL_FILE)" - $(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools generate-tiles +# For some reason Ctrl+C doesn't work here without the -T. Must be pressed twice to stop. + $(DOCKER_COMPOSE) run -T $(DC_OPTS) openmaptiles-tools generate-tiles @echo "Updating generated tile metadata ..." $(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools \ mbtiles-tools meta-generate "$(MBTILES_LOCAL_FILE)" $(TILESET_FILE) --auto-minmax --show-ranges