Skip to content
Snippets Groups Projects
Commit 2a5b2a93 authored by Lionel VIDALLER's avatar Lionel VIDALLER
Browse files

version alpha pour test deploiement

parent 95234452
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ until [ -e "$FILE" ]; do ...@@ -10,6 +10,8 @@ until [ -e "$FILE" ]; do
sleep 5 sleep 5
done done
rm -Rf ./photondata && mkdir photondata
# Create elasticsearch index # Create elasticsearch index
if [ ! -d "/photon/photon_data/elasticsearch" ]; then if [ ! -d "/photon/photon_data/elasticsearch" ]; then
echo "Creating search index" echo "Creating search index"
......
...@@ -10,13 +10,15 @@ sudo rm -Rf ./nominatimdata && mkdir nominatimdata ...@@ -10,13 +10,15 @@ sudo rm -Rf ./nominatimdata && mkdir nominatimdata
sudo rm -Rf ./photondata && mkdir photondata sudo rm -Rf ./photondata && mkdir photondata
# Build the image # Build the image
cd nominatim-3.1 cd nominatim-3.5
docker build -t nominatim . docker build -t nominatim .
cd .. cd ..
# Get the Rhône-Alpes database # Get the Métropole de Lyon database
wget --directory-prefix=./nominatimdata https://download.geofabrik.de/europe/france/rhone-alpes-latest.osm.pbf # 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 # Initialize the database
docker run -t \ docker run -t \
-v `pwd`/nominatimdata:/data \ -v `pwd`/nominatimdata:/data \
nominatim \ nominatim \
sh /app/init.sh /data/rhone-alpes-latest.osm.pbf postgresdata 4 sh /app/init.sh /data/mdl-latest.osm.pbf postgresdata 4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment