Commit 3e7d10d9 authored by Felix Delattre's avatar Felix Delattre
Browse files

Remove osm2pgsql from logic.

parent c6ae92a9
......@@ -23,20 +23,12 @@ RUN apt update
RUN apt install --no-install-recommends -y \
ca-certificates \
git \
osm2pgsql \
postgresql-client \
python3 \
python3-pip \
pyosmium \
wait-for-it
# Install spearhead
RUN cd /usr/local/lib && git clone https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/spearhead.git
RUN ln -s /usr/local/lib/spearhead/spearhead /usr/local/bin/spearhead
# Install rabotnik rcli
RUN cd /srv && git clone https://git.gfz-potsdam.de/dynamicexposure/rabotnik/rcli.git
WORKDIR /srv/rcli
# Install rabotnik spearhead
RUN cd /srv && git clone https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/spearhead.git
WORKDIR /srv/spearhead
RUN pip3 install -e .
# Cleanup
......@@ -45,6 +37,4 @@ RUN apt-get autoremove --yes $build_dependencies && \
apt-get clean --yes && \
rm -rf /var/lib/apt/* /var/cache/apt/* /root/.cache
VOLUME ["/tmp/import"]
CMD wait-for-it -t 30 $RABOTNIK_MESSAGE_BUS_HOST:$RABOTNIK_MESSAGE_BUS_PORT -- /usr/local/bin/spearhead
CMD wait-for-it -t 30 $RABOTNIK_MESSAGE_BUS_HOST:$RABOTNIK_MESSAGE_BUS_PORT -- spearhead
=====================
Docker OBM import OSM
=====================
Import data from OpenStreetMap (OSM) to the OpenBuildingMap (OBM) Buildings database using
`spearhead <https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/spearhead>`__ and keep
it up-to-data through pulling regular updates from OSM.
Define variables
----------------
* :code:`SPEARHEAD_DATABASE_HOST` - Host url or IP of the database
* :code:`SPEARHEAD_DATABASE_NAME` - Name of the database
* :code:`SPEARHEAD_DATABASE_USER` - User to connect to the database
* :code:`SPEARHEAD_IMPORT_STYLE` - Absolute path to an available osm2pgsql style file
* :code:`SPEARHEAD_IMPORT_FILE` - Absolute path to an available OSM pbf-file containing data of an area
* :code:`SPEARHEAD_SEQUENCE_FILE` - Name of the file to store the sequence state of OSM updates
* :code:`SPEARHEAD_REPLICATION_DIRECTORY` - Path to the directory to store OSM update files
* :code:`SPEARHEAD_REPLICATION_SERVER` - Server endpoint to obtain OSM changeset files
================
Docker Spearhead
================
Trigger updates from augmented diffs.
Copyright and copyleft
----------------------
......
Supports Markdown
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