openstreetmap-tile-server/Makefile

19 lines
535 B
Makefile
Raw Normal View History

2018-05-08 20:43:34 +00:00
.PHONY: build push test
2019-12-22 20:49:04 +00:00
DOCKER_IMAGE=overv/openstreetmap-tile-server
2018-05-08 20:43:34 +00:00
build:
2019-12-22 20:49:04 +00:00
docker build -t ${DOCKER_IMAGE} .
2018-05-08 20:43:34 +00:00
push: build
2019-12-22 20:49:04 +00:00
docker push ${DOCKER_IMAGE}:latest
2018-05-08 20:43:34 +00:00
test: build
docker volume create openstreetmap-data
2019-12-22 20:49:04 +00:00
docker run --rm -v openstreetmap-data:/var/lib/postgresql/12/main ${DOCKER_IMAGE} import
docker run --rm -v openstreetmap-data:/var/lib/postgresql/12/main -p 8080:80 -d ${DOCKER_IMAGE} run
2019-12-22 20:49:04 +00:00
stop:
docker rm -f `docker ps | grep '${DOCKER_IMAGE}' | awk '{ print $$1 }'` || true
docker volume rm -f openstreetmap-data