-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new flexible parameters and new logic of using of nominatim-docker #394
base: master
Are you sure you want to change the base?
Conversation
|
@@ -66,7 +70,7 @@ sudo -E -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='ww | |||
sudo -E -u postgres psql postgres -tAc "ALTER USER nominatim WITH ENCRYPTED PASSWORD '$NOMINATIM_PASSWORD'" && \ | |||
sudo -E -u postgres psql postgres -tAc "ALTER USER \"www-data\" WITH ENCRYPTED PASSWORD '${NOMINATIM_PASSWORD}'" && \ | |||
|
|||
sudo -E -u postgres psql postgres -c "DROP DATABASE IF EXISTS nominatim" | |||
sudo -E -u postgres psql postgres -c "DROP DATABASE IF EXISTS $PGDATABASE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering why we even drop the database in the first place. Seems quite destructive.
@philipkozeny do you have an idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leonardehrenfried because the OG maintainer started doing that in the initial version he released, never questioned if we should continue with that behaviour to be honest ...
nominatim-docker/2.5/Dockerfile
Line 50 in 10fc9e4
sudo -u postgres psql postgres -c "DROP DATABASE IF EXISTS nominatim" && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That because I try to make it safely.
It's OK, if you could change name, I think
When I made these changes, my goal was:
To do this, I added:
SKIP_IMPORT
, which allows skipping imports when we have a "naive" container that is intended only for updatingPGDATABASE
to the documentation and change a few lines in which thenominatim
database participates in order to avoid erroneous database deletion on production systemsThank you for your work