docker
docker copied to clipboard
[IMP] Add option to customize wait-for-psql.py timeout
Allow users to pass a custom timeout value for the wait-for-psql.py script to the container via the PSQL_TIMEOUT environment variable.
The timeout of 30 seconds still remains the default.
Background
In our Kubernetes cluster the startup of the postgresql container takes sometimes a little longer than 30 seconds. This change offers users to adjust the timeout to a higher value to prevent the odoo container from getting stuck.
@mamiu can you update this PR for 15, 16, 17 releases?
@lathama Are you working for Odoo? I only wanna update this PR if I can be sure that someone's merging it.