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
|
2022-04-09 13:00:29 +00:00
|
|
|
docker volume create osm-data
|
|
|
|
docker run --rm -v osm-data:/data/database/ ${DOCKER_IMAGE} import
|
|
|
|
docker run --rm -v osm-data:/data/database/ -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
|
2022-04-09 13:00:29 +00:00
|
|
|
docker volume rm -f osm-data
|