diff options
author | U-ES\sadeghi.f <thabogre@gmail.com> | 2020-11-17 14:51:17 +0000 |
---|---|---|
committer | U-ES\sadeghi.f <thabogre@gmail.com> | 2020-11-17 14:51:17 +0000 |
commit | 8d35e9c78793a298125cf957cbfe3e2a4b481c97 (patch) | |
tree | 440116866cfa71ee7ad07c4ba81596d2240bd4b4 | |
parent | update (diff) | |
download | dockerimages-8d35e9c78793a298125cf957cbfe3e2a4b481c97.tar.gz dockerimages-8d35e9c78793a298125cf957cbfe3e2a4b481c97.zip |
update
Diffstat (limited to '')
-rw-r--r-- | nominatim/Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nominatim/Dockerfile b/nominatim/Dockerfile index daf922f..2287c90 100644 --- a/nominatim/Dockerfile +++ b/nominatim/Dockerfile @@ -22,8 +22,10 @@ RUN systemctl restart postgresql RUN systemctl enable postgresql RUN systemctl start postgresql RUN (cd /serv && wget https://download.bbbike.org/osm/bbbike/Tehran/Tehran.osm.pbf) +RUN (cd /serv && wget http://download.geofabrik.de/asia/iran-latest.osm.pbf) RUN (cd /serv && chown postgres:postgres /serv) RUN (cd /serv && chown postgres:postgres Tehran.osm.pbf) -RUN su postgres -c '/usr/lib/postgresql/12/bin/pg_ctl start -l logfile -D /serv/Tehran.osm.pbf' +RUN sudo -u postgres /usr/lib/postgresql/12/bin/initdb -D /serv/iran-latet.osm.pbf +RUN sudo -u postgres /usr/lib/postgresql/12/bin/pg_ctl start -l logfile -D /serv/Tehran.osm.pbf # RUN sudo -u postgres createuser -s $USERNAME # RUN sudo -u postgres createuser www-data |