diff --git a/photon/entrypoint.sh b/photon/entrypoint.sh index e370bc1accdecc274e671e367b79c9b19e1dc569..a0e7397f746b607afff2ed0f34004c19734bdde8 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 817ec84815edd1283dcdee043774b838850b1ab9..cf8c75b7625ea7dcb530292145a7874fa8b795c7 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