You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
938 B

# base image
FROM pelias/baseimage
# grab all of the valhalla software from ppa
RUN apt-get update && \
apt-get install -y software-properties-common python-software-properties && \
add-apt-repository -y ppa:kevinkreiser/prime-server && \
add-apt-repository -y ppa:valhalla-routing/valhalla && \
apt-get update && \
apt-get install -y valhalla-bin && \
rm -rf /var/lib/apt/lists/*;
# change working dir
RUN mkdir -p /code/valhalla
WORKDIR /code/valhalla
# generate config
RUN valhalla_build_config \
--mjolnir-tile-dir '/data/valhalla' \
--mjolnir-tile-extract '/data/valhalla.tar' \
--mjolnir-timezone '/data/valhalla/timezones.sqlite' \
--mjolnir-admin '/data/valhalla/admins.sqlite' > valhalla.json
# build script
RUN echo 'valhalla_build_tiles -c valhalla.json /data/openstreetmap/*.osm.pbf; valhalla_export_edges --config valhalla.json > /data/polylines/pbf_extract.polyline;' > ./docker_build.sh