Added config-expand script in entrypoint to allow more control over o…#276
Added config-expand script in entrypoint to allow more control over o…#276PCatinean wants to merge 1 commit intoTecnativa:masterfrom
Conversation
|
Hi there, thanks for the PR. It seems a pretty intelligent way to handle an old problem. What's missing:
|
|
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 |
aa723ae to
ae209eb
Compare
….conf template files
|
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. |
joao-p-marques
left a comment
There was a problem hiding this comment.
However, maybe this deserves a test, possibly a small change to https://github.com/Tecnativa/doodba/tree/master/tests/scaffoldings/settings
@PCatinean can you do it, please?
Thanks for the nice improvement 😃
| parser = RawConfigParser(strict=False) | ||
| except ImportError: | ||
| # Python 2, where strict=True doesn't exist | ||
| # Python 2, where strict=True doesn"t exist |
There was a problem hiding this comment.
Also, could you change this back to doesn't?
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.