odoo / odoo/docker

Configurable DB_NAME

Open
#535 4 comments 7 reactions 0 assignees View on GitHub

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.

https://github.com/odoo/docker/blob/6b739618081fc0ff46032b38f5c126bafcdfe3a4/18.0/wait-for-psql.py#L21

https://github.com/odoo/docker/blob/6b739618081fc0ff46032b38f5c126bafcdfe3a4/18.0/entrypoint.sh#L9-L30

Best Regards,
Mathias Beaulieu-Duncan

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.