kopia lustrzana https://github.com/kartoza/docker-osm
review makefile and default values
rodzic
3729585ef7
commit
72bc59e3e9
26
Makefile
26
Makefile
|
@ -4,6 +4,11 @@ COMPOSE_FILE := docker-compose.yml
|
||||||
|
|
||||||
.PHONY: logs
|
.PHONY: logs
|
||||||
|
|
||||||
|
###
|
||||||
|
# DOCKER MANAGEMENT
|
||||||
|
###
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@echo
|
@echo
|
||||||
@echo "------------------------------------------------------------------"
|
@echo "------------------------------------------------------------------"
|
||||||
|
@ -60,12 +65,11 @@ live_logs:
|
||||||
@echo "------------------------------------------------------------------"
|
@echo "------------------------------------------------------------------"
|
||||||
@docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) logs -f
|
@docker-compose -f $(COMPOSE_FILE) -p $(PROJECT_ID) logs -f
|
||||||
|
|
||||||
ipdb:
|
|
||||||
@echo
|
###
|
||||||
@echo "------------------------------------------------------------------"
|
# CLIPPING
|
||||||
@echo "Database's IP"
|
###
|
||||||
@echo "------------------------------------------------------------------"
|
|
||||||
@docker inspect $(PROJECT_ID)_db | grep '"IPAddress"' | head -1 | cut -d '"' -f 4
|
|
||||||
|
|
||||||
import_clip:
|
import_clip:
|
||||||
@echo
|
@echo
|
||||||
|
@ -81,6 +85,11 @@ remove_clip:
|
||||||
@echo "------------------------------------------------------------------"
|
@echo "------------------------------------------------------------------"
|
||||||
@docker exec -t -i $(PROJECT_ID)_db /bin/su - postgres -c "psql gis -c 'DROP TABLE IF EXISTS clip;'"
|
@docker exec -t -i $(PROJECT_ID)_db /bin/su - postgres -c "psql gis -c 'DROP TABLE IF EXISTS clip;'"
|
||||||
|
|
||||||
|
###
|
||||||
|
# STATS
|
||||||
|
###
|
||||||
|
|
||||||
|
|
||||||
timestamp:
|
timestamp:
|
||||||
@echo
|
@echo
|
||||||
@echo "------------------------------------------------------------------"
|
@echo "------------------------------------------------------------------"
|
||||||
|
@ -88,6 +97,11 @@ timestamp:
|
||||||
@echo "------------------------------------------------------------------"
|
@echo "------------------------------------------------------------------"
|
||||||
@docker exec -t -i $(PROJECT_ID)_imposm cat /home/settings/timestamp.txt
|
@docker exec -t -i $(PROJECT_ID)_imposm cat /home/settings/timestamp.txt
|
||||||
|
|
||||||
|
###
|
||||||
|
# STYLES
|
||||||
|
###
|
||||||
|
|
||||||
|
|
||||||
import_styles: remove_styles
|
import_styles: remove_styles
|
||||||
@echo
|
@echo
|
||||||
@echo "------------------------------------------------------------------"
|
@echo "------------------------------------------------------------------"
|
||||||
|
|
|
@ -15,6 +15,7 @@ storage:
|
||||||
db:
|
db:
|
||||||
# About the postgresql version, it should match in the dockerfile of docker-imposm3
|
# About the postgresql version, it should match in the dockerfile of docker-imposm3
|
||||||
image: kartoza/postgis:9.4-2.1
|
image: kartoza/postgis:9.4-2.1
|
||||||
|
# image: kartoza/postgis:10.0-2.4
|
||||||
container_name: dockerosm_db
|
container_name: dockerosm_db
|
||||||
hostname: db
|
hostname: db
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -15,6 +15,7 @@ storage:
|
||||||
db:
|
db:
|
||||||
# About the postgresql version, it should match in the dockerfile of docker-imposm3
|
# About the postgresql version, it should match in the dockerfile of docker-imposm3
|
||||||
image: kartoza/postgis:9.4-2.1
|
image: kartoza/postgis:9.4-2.1
|
||||||
|
# image: kartoza/postgis:10.0-2.4
|
||||||
container_name: dockerosm_db
|
container_name: dockerosm_db
|
||||||
hostname: db
|
hostname: db
|
||||||
environment:
|
environment:
|
||||||
|
@ -40,7 +41,7 @@ imposm:
|
||||||
- DATABASE=gis
|
- DATABASE=gis
|
||||||
# seconds between 2 executions of the script
|
# seconds between 2 executions of the script
|
||||||
# if 0, then no update will be done, only the first initial import from the PBF
|
# if 0, then no update will be done, only the first initial import from the PBF
|
||||||
- TIME=0
|
- TIME=120
|
||||||
# folder for settings (with *.json and *.sql)
|
# folder for settings (with *.json and *.sql)
|
||||||
- SETTINGS=settings
|
- SETTINGS=settings
|
||||||
# folder for caching
|
# folder for caching
|
||||||
|
@ -89,4 +90,4 @@ osmupdate:
|
||||||
- IMPORT_DONE=import_done
|
- IMPORT_DONE=import_done
|
||||||
# seconds between 2 executions of the script
|
# seconds between 2 executions of the script
|
||||||
# if 0, then no update will be done, only the first initial import from the PBF
|
# if 0, then no update will be done, only the first initial import from the PBF
|
||||||
- TIME=0
|
- TIME=120
|
||||||
|
|
Ładowanie…
Reference in New Issue