-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
38 lines (29 loc) · 1.12 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
run:
docker-compose up -d web
restart:
docker-compose restart api
docker-compose restart t-rex
docker-compose restart web
update-data:
docker-compose run --rm importer
docker-compose run --rm --entrypoint 'rm -rf /srv/mvtcache/*' t-rex
chmod a+rw t-rex/cache
docker-compose restart api
docker-compose restart t-rex
docker-compose restart web
help:
@echo VapourTrail https://github.com/Jungle-Bus/VapourTrail
sprite:
spritezero web/img/sprites map_icons/svgs
imposm/import/monaco.osm.pbf:
wget http://download.geofabrik.de/europe/monaco-latest.osm.pbf --no-verbose -O $@
#to get the bbox : osmconvert --out-statistics imposm/import/monaco.osm.pbf | egrep 'lon |lat ' | cut -d ' ' -f 3 | tr '\n' ' ' | sed -E "s/([^ ]+) ([^ ]+) ([^ ]+) ([^ ]+)/\1,\3,\2,\4/"
test-monaco: run imposm/import/monaco.osm.pbf update-data
make generate-tiles bbox=7.40701675415039,43.7229786663231,7.4437522888183585,43.7541091221655
test: test-monaco
generate-tiles:
./t-rex/generate_all_tiles.sh
prepare-static:
docker-compose run --rm --entrypoint '/mapping/dump_objects_list.sh' importer
./web/prepare_static.sh
./api/scrap_api_for_static.sh