containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/discourse] Allow specifying database when creating

Open Aankhen opened this issue 1 year ago • 3 comments

Name and Version

bitnami/discourse:3.1.2

What is the problem this feature will solve?

DigitalOcean (and probably other providers too) uses doadmin as the name of the default database but libdiscourse.sh hard-codes postgres, so there’s no way to make it work without manual intervention.

What is the feature you are proposing to solve the problem?

That postgresql_client_initialize use a database name specified in an environment variable.

What alternatives have you considered?

Manually creating the postgres database, which is acceptable for a one-off installation but causes unnecessary complications in a declarative configuration. In fairness, creating the databases is an infrequent requirement, so I understand that this might not be an important feature.

Aankhen avatar Oct 22 '23 15:10 Aankhen

Hi!

Thank you so much for creating the PR! Would you like to submit a PR adding support for an env var for the database admin user?

javsalgar avatar Oct 23 '23 07:10 javsalgar

Thanks for the quick response. I unfortunately don’t think that’s something I can do, as I have my hands full just setting this up in the middle of other work. 😞

Aankhen avatar Oct 25 '23 03:10 Aankhen

Hi @Aankhen ,

We have just created an internal task to work on it. We will keep you updated about any progress.

dgomezleon avatar Oct 25 '23 09:10 dgomezleon