Newer
Older
#!/bin/bash
# Store current directory
WORKDIR=`pwd`
echo $WORKDIR
### Nominatim ###
# Stop existing containers
docker-compose down
# Clear existing data
sudo rm -Rf ./nominatimdata/*
# Get the container image source
git clone https://github.com/mediagis/nominatim-docker.git
# Build the image
cd nominatim-docker/3.1
docker build -t nominatim .
cd WORKDIR
# Get the Rhône-Alpes database
wget --directory-prefix=./nominatimdata https://download.geofabrik.de/europe/france/rhone-alpes-latest.osm.pbf
# Init the database
docker run -t \
-v `pwd`/nominatimdata:/data \
nominatim \
sh /app/init.sh /data/rhone-alpes-latest.osm.pbf postgresdata 4