Commit 9b348667 authored by Volker Krause's avatar Volker Krause Committed by Torsten Rahn

Build Tirex .deb packages, and update package documentation

This should help in case there is no suitable PPA for Tirex for the version
needed on the server. The part we need of Tirex is ultimately just a Perl
script anyway, the compiled parts are only needed for Mapnik integration
that we are not going to use.
parent 91570202
......@@ -23,18 +23,23 @@ database, which allows for fast spatial queries and efficient incremental update
The following components are assumed to be on the server:
* Apache2
* mod_tile - https://wiki.openstreetmap.org/wiki/Mod_tile
* Tirex - https://wiki.openstreetmap.org/wiki/Tirex
* osmx and osmx-update - https://github.com/protomaps/OSMExpress (static binary of osmx available there, osmx-update is a Python script)
* marble-vectorosm-tirex-backend
The following components are needed for the static/low-z tile generation and can be run on a different machine:
* Python 3
* For tile generation in general
* osmctools - https://gitlab.com/osm-c-tools/osmctools
* For the static/low-z tile generation (could be done on a different machine if needed):
* ogr2ogr from gdal (?)
* ne_tilegenerator.py
* marble-vectorosm-tilecreator
* For the dynamic/high-z tile generation:
* mod_tile - https://wiki.openstreetmap.org/wiki/Mod_tile
* Tirex - https://wiki.openstreetmap.org/wiki/Tirex
* osmx and osmx-update - https://github.com/protomaps/OSMExpress (static binary of osmx available there, osmx-update is a Python script)
* marble-vectorosm-tirex-backend
* osmctools - https://gitlab.com/osm-c-tools/osmctools
* ogr2ogr from gdal (?)
* ne_tilegenerator.py
* marble-vectorosm-tilecreator
* marble-vectorosm-process-land-polygons
Precompiled packages:
* mod_tile: PPA by OSM admin team: https://launchpad.net/~osmadmins/+archive/ubuntu/ppa
* Tirex: PPA by the author: https://launchpad.net/~framm/+archive/ubuntu/tirex - unfortunately only for Ubuntu 18.04
To work around this, Debian packages can be built by running `make` in the `build` sub-directory of this folder as well.
## Setup
......
......@@ -5,8 +5,12 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
export DEBCONF_NONINTERACTIVE_SEEN=true; \
apt-get -y install \
cmake \
debhelper \
devscripts \
g++ \
git \
libboost-program-options-dev \
libmapnik-dev \
libprotobuf-dev \
libqt5svg5-dev \
libshp-dev \
......@@ -14,4 +18,4 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
qtbase5-dev \
qtdeclarative5-dev
COPY build-tilegenerator.sh /usr/bin/
COPY build-tilegenerator.sh build-tirex.sh /usr/bin/
build: image
mkdir -p output
docker run -it --rm -v `pwd`/output:/output vkrause/marble-builder build-tilegenerator.sh
docker run -it --rm -v `pwd`/output:/output vkrause/marble-builder build-tirex.sh
image: Dockerfile build-tilegenerator.sh
image: Dockerfile build-tilegenerator.sh build-tirex.sh
docker build -t vkrause/marble-builder .
#!/bin/bash
cd
git clone https://github.com/openstreetmap/tirex.git
cd tirex
make deb
# extract the relevant output
cd
cp *.deb /output/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment