forked from Overv/openstreetmap-tile-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (31 loc) · 2.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: build push test
build:
docker build -t registry.finomena.fi/c/openstreetmap-tile-server:latest --build-arg NOCACHE=$$(date +%s) .
docker tag registry.finomena.fi/c/openstreetmap-tile-server:latest registry.finomena.fi/c/openstreetmap-tile-server:0.4.15
build_min:
docker build -t registry.finomena.fi/c/openstreetmap-tile-server:latest --build-arg NOCACHE=0 .
docker tag registry.finomena.fi/c/openstreetmap-tile-server:latest registry.finomena.fi/c/openstreetmap-tile-server:0.4.15
build_new:
docker build -t registry.finomena.fi/c/openstreetmap-tile-server-new:latest -f Dockerfile-new-map --build-arg NOCACHE=$$(date +%s) .
docker tag registry.finomena.fi/c/openstreetmap-tile-server-new:latest registry.finomena.fi/c/openstreetmap-tile-server:0.8.2
build_new_h:
docker build -t registry-hetzner.finomena.fi/openstreetmap-tile-server-new:latest -f Dockerfile-new-map --build-arg NOCACHE=$$(date +%s) .
docker tag registry-hetzner.finomena.fi/openstreetmap-tile-server-new:latest registry-hetzner.finomena.fi/openstreetmap-tile-server:0.8.2
push: build
docker push registry.finomena.fi/c/openstreetmap-tile-server:0.4.12
test:
-docker rm mtb-tileserver
-docker volume rm openstreetmap-data
-docker volume rm openstreetmap-rendered-tiles
docker run -e THREADS=10 -e NODEMEM=10000 -v $$(pwd):/osm-data -v openstreetmap-data:/var/lib/postgresql/10/main registry.finomena.fi/c/openstreetmap-tile-server:latest import
docker run --name mtb-tileserver -p 8880:80 -v $$(pwd):/osm-data -v openstreetmap-data:/var/lib/postgresql/10/main -v openstreetmap-rendered-tiles:/var/lib/mod_tile registry.finomena.fi/c/openstreetmap-tile-server:latest pre-render
echo $?
test_new:
-docker rm mtb-tileserver
-docker volume rm openstreetmap-data
-docker volume rm openstreetmap-rendered-tiles
docker run -e THREADS=10 -e NODEMEM=10000 -v $$(pwd):/osm-data -v openstreetmap-data:/var/lib/postgresql/10/main registry.finomena.fi/c/openstreetmap-tile-server-new:latest import
docker run --name mtb-tileserver -p 8880:80 -v $$(pwd):/osm-data -v openstreetmap-data:/var/lib/postgresql/10/main -v openstreetmap-rendered-tiles:/var/lib/mod_tile registry.finomena.fi/c/openstreetmap-tile-server-new:latest run-fresh
echo $?
osm_data:
wget -nv http://download.geofabrik.de/europe/finland-latest.osm.pbf -O data.osm.pbf