From 2a5b2a93c179a028b128e2ced45740c85798d95c Mon Sep 17 00:00:00 2001 From: Lionel Vidaller <lvidaller@grandlyon.com> Date: Fri, 30 Oct 2020 08:47:42 +0100 Subject: [PATCH] version alpha pour test deploiement --- photon/entrypoint.sh | 2 ++ setup.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/photon/entrypoint.sh b/photon/entrypoint.sh index e370bc1..a0e7397 100755 --- a/photon/entrypoint.sh +++ b/photon/entrypoint.sh @@ -10,6 +10,8 @@ until [ -e "$FILE" ]; do sleep 5 done +rm -Rf ./photondata && mkdir photondata + # Create elasticsearch index if [ ! -d "/photon/photon_data/elasticsearch" ]; then echo "Creating search index" diff --git a/setup.sh b/setup.sh index 817ec84..cf8c75b 100755 --- a/setup.sh +++ b/setup.sh @@ -10,13 +10,15 @@ sudo rm -Rf ./nominatimdata && mkdir nominatimdata sudo rm -Rf ./photondata && mkdir photondata # Build the image -cd nominatim-3.1 +cd nominatim-3.5 docker build -t nominatim . cd .. -# Get the Rhône-Alpes database -wget --directory-prefix=./nominatimdata https://download.geofabrik.de/europe/france/rhone-alpes-latest.osm.pbf +# Get the Métropole de Lyon database +# wget --directory-prefix=./nominatimdata https://download.data.grandlyon.com/files/grandlyon/localisation/bal/bal_200046977.csv +# convert the database to osm file + # Initialize the database docker run -t \ -v `pwd`/nominatimdata:/data \ nominatim \ -sh /app/init.sh /data/rhone-alpes-latest.osm.pbf postgresdata 4 +sh /app/init.sh /data/mdl-latest.osm.pbf postgresdata 4 -- GitLab