Ran for a while and then failed with this error on step 49:
Step 49/68 : RUN service postgresql start && sudo -u nominatim ${USERHOME}/Nominatim/build/utils/setup.php --osm-file /srv/nominatim/src/data.osm.pbf --all --threads ${BUILD_THREADS} --osm2pgsql-cache ${OSM2PGSQL_CACHE} && service postgresql stop
---> Running in 4ff1cb61c24b
Starting PostgreSQL 9.6 database server
...done.
2019-06-10 06:40:08 == module path: /srv/nominatim/Nominatim/build/module
2019-06-10 06:40:08 == Create DB
2019-06-10 06:40:09 == Setup DB
Postgres version found: 9.06
ERROR: could not access file "$libdir/postgis-2.5": No such file or directory
ERROR: pgsql returned with error code (3)
string(34) "pgsql returned with error code (3)"
The command '/bin/sh -c service postgresql start && sudo -u nominatim ${USERHOME}/Nominatim/build/utils/setup.php --osm-file /srv/nominatim/src/data.osm.pbf --all --threads ${BUILD_THREADS} --osm2pgsql-cache ${OSM2PGSQL_CACHE} && service postgresql stop' returned a non-zero code: 255
Tried this command per the documentation:
docker build github.com/merlinnot/nominatim-docker \ -t test \ --build-arg BUILD_THREADS=16 \ --build-arg BUILD_MEMORY=16GB \ --build-arg OSM2PGSQL_CACHE=28000 \ --build-arg RUNTIME_THREADS=2 \ --build-arg RUNTIME_MEMORY=4GB
Ran for a while and then failed with this error on step 49:
Step 49/68 : RUN service postgresql start && sudo -u nominatim ${USERHOME}/Nominatim/build/utils/setup.php --osm-file /srv/nominatim/src/data.osm.pbf --all --threads ${BUILD_THREADS} --osm2pgsql-cache ${OSM2PGSQL_CACHE} && service postgresql stop ---> Running in 4ff1cb61c24b