-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (54 loc) · 1.56 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
bengaluru-clip:
rm -f clip.osm.pbf
./clipper.exe southern-zone-latest.osm.pbf -b=77,12,79,15 --out-pbf -o=clip.osm.pbf
get-map:
rm -f ./southern-zone-latest.osm.pbf
wget https://download.geofabrik.de/asia/india/southern-zone-latest.osm.pbf
build-ch:
docker build --memory="1G" --cpu-quota=2 -t osrm-ch -f ch/Dockerfile.dev .
build-mld:
docker build --memory="1G" --cpu-quota=2 -t osrm-mld -f mld/Dockerfile.dev .
et:
mkdir -p extract
mkdir -p t_extract
cp ./clip.osm.pbf ./t_extract
docker build --memory="1G" --cpu-quota=2 -t osrm-build -f ./Dockerfile .
docker run --memory="1G" --cpus=2 --rm -t -v "${PWD}:/data" osrm-build osrm-extract -p /opt/motorcycle.lua /data/t_extract/clip.osm.pbf
cp -r ./t_extract/. ./extract
rm -rf t_extract
build-ch-fast:
docker build -t osrm-ch-fast -f ch/Dockerfile.dev .
build-mld-fast:
docker build -t osrm-mld-fast -f mld/Dockerfile.dev .
et-fast:
mkdir extract
mkdir t_extract
cp ./clip.osm.pbf ./t_extract
docker run --rm -t -v "${PWD}:/data" ghcr.io/project-osrm/osrm-backend osrm-extract -p /opt/car.lua /data/t_extract/clip.osm.pbf
cp -r ./t_extract/. ./extract
rm -rf t_extract
build:
$(MAKE) et
$(MAKE) build-ch
$(MAKE) build-mld
build-fast:
$(MAKE) et-fast
$(MAKE) build-ch-fast
$(MAKE) build-mld-fast
run:
docker-compose -f docker-compose.yml up
run-fast:
docker-compose -f docker-compose-fast.yml up
clean:
docker-compose rm
rm -rf ./t_extract
clean-hard:
rm -rf ./extract
mkdir extract
docker-compose rm
complete:
$(MAKE) clean-hard
$(MAKE) get-map
$(MAKE) bengaluru-clip
$(MAKE) build
$(MAKE) run