-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve PSQL wait script #496
base: master
Are you sure you want to change the base?
Improve PSQL wait script #496
Conversation
4490560
to
1bb6e3d
Compare
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.
Noting limits of the docker build process and best practices.
f00f001
to
4282175
Compare
@lathama - apologies for the back and forth - was struggling with the symlinks a bit. This is ready for review :) |
4035fbe
to
c446a5b
Compare
* support: Move to shared directory to avoid code drift. * feat: Make DB name configurable
fb45459
to
065aadd
Compare
@lathama - I don't think it's really ideal to maintain copy and paste of all those scripts, but I struggled to find a solution for that. I've ported all of the changes from the previous PR to all the new images |
f764ffa
to
a231649
Compare
0777f0b
to
3f7c82d
Compare
The installed package
|
Amazing - thank you @lathama - I'll migrate to this shortly |
@lathama - can you confirm if the below items are ok:
This is fine if all we need to do is verify the DB is ready to accept connections, but seems less so if we want to validate a connection is actually established. Please advise - thanks! |
Pending your feedback, I've completed the migration. |
Looking now |
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.
See also #358, #394, #426 and #482.
Use cases:
- permissive single-tenant: wait for postgres database, odoo startup creates odoo database, --db_name set, --no-database-list
- permissive multi-tenant: wait for postgres database, use database manager to create database, --db_name unset
- restrictive multi-tenant (multiple odoo servers, single database server): named database already created, use that database, --db_name set, --no-database-list
@amh-mw - I've removed the DB_NAME override from this PR since the bulk of the changes was adding the pg_isready support. Once that is reviewed, I'll start working on the DB_NAME override :) |
06268bf
to
cf77605
Compare
Follow up to #292
pg_isready