Configurable DB_NAME
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 1.2k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Why is the database name hardcoded? Even if you change it in the odoo.conf, the Docker container won't be compatible with a PostgreSQL database that doesn't have a database named 'postgres'. Multiple people have reported this issue and created PRs to address it, but none of them have been taken seriously. I'm currently creating a Helm chart for Odoo and have to jump through hoops to get it set up.
#459 #426
Obviously these PRs were neglected for so long but it would be nice if the Odoo team merge a solution once and for all to this issue.
Best Regards,
Mathias Beaulieu-Duncan
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with wait-for-psql.py and entrypoint.sh at the linked lines, then trace how the Odoo configuration is passed into the Docker container. Identify where the database name is fixed to postgres and make the setting usable for another PostgreSQL database name; done means the container connects without requiring a database named postgres.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, postgresql, python, shell
- Domain
- databases, devops, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100