doodba
doodba copied to clipboard
Added config-expand script in entrypoint to allow more control over o…
Whenever there's a parameter to change in the odoo config as of now if I'm not mistaken we have to add them one by one from ENV to the config. This is what I use in my deployments to k8s clusters to make it easier and flexible at the same time. Let me know if this is of any use in the general project.
Hi there, thanks for the PR.
It seems a pretty intelligent way to handle an old problem.
What's missing:
- Add this logic into https://github.com/Tecnativa/doodba/blob/master/bin/config-generate directly.
- Provide a deprecation path to the old system where it's duplicated with the new one.
Yeah I just uploaded mine from scaffolding first to see if it's of any use. I'll do my best to get to it this week
Just a question, does this cause issues with non odoo options that would usually sit in different parts of the conf file? e.g. the old queue job settings.
Just a question, does this cause issues with non odoo options that would usually sit in different parts of the conf file? e.g. the old queue job settings.
AFAICS it shouldn't cause any problem... All this does is append to the parser (or replace) the variables defined by environment, so you should still be able to add a custom config section to the file and use the variables for general Odoo settings at the same time.