From de1b38a7749234a68c8ddfc7ce0f8d54b1ec61dc Mon Sep 17 00:00:00 2001 From: Felix Delattre <fd@gfz-potsdam.de> Date: Thu, 2 Sep 2021 10:36:53 +0000 Subject: [PATCH] Remove osm2pgsql from logic. --- Dockerfile | 9 --------- README.rst | 15 +++++---------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6c0df6..ff0bb53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,17 +23,8 @@ 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 diff --git a/README.rst b/README.rst index dfe92b2..c99e225 100644 --- a/README.rst +++ b/README.rst @@ -1,10 +1,8 @@ -===================== -Docker OBM import OSM -===================== +================ +Docker Spearhead +================ -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. +Trigger updates from augmented diffs. Define variables ---------------- @@ -12,11 +10,8 @@ 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 +* :code:`SPEARHEAD_OVERPASS_API` - Path to an Overpass API endpoint Copyright and copyleft ---------------------- -- GitLab