[FIX] shell option + [ADD] roadmap to use dockerpty

This commit is contained in:
Sylvain LE GAL 2022-04-28 01:36:50 +02:00
parent 31651fcbee
commit eb3af378e8
2 changed files with 5 additions and 2 deletions

View File

@ -8,3 +8,6 @@
* revert : set 777 to log and filestore to be able to write on this folder * revert : set 777 to log and filestore to be able to write on this folder
inside the containers. TODO, ask to coop it easy or commown for better alternative. inside the containers. TODO, ask to coop it easy or commown for better alternative.
* allow to call odoo-bin shell, via : https://github.com/d11wtq/dockerpty
(see https://github.com/docker/docker-py/issues/247)

View File

@ -87,6 +87,7 @@ def generate_odoo_command(
) )
result = ( result = (
f"/odoo_env/src/odoo/odoo-bin" f"/odoo_env/src/odoo/odoo-bin"
f" {shell_cmd}"
f" --db_host db" f" --db_host db"
f" --db_port 5432" f" --db_port 5432"
f" --db_user odoo" f" --db_user odoo"
@ -96,12 +97,11 @@ def generate_odoo_command(
f" --data-dir /env/filestore/" f" --data-dir /env/filestore/"
f" --logfile {log_file}" f" --logfile {log_file}"
f" --addons-path {addons_path}" f" --addons-path {addons_path}"
f" {demo_cmd}"
f" {database_cmd}" f" {database_cmd}"
f" {update_cmd}" f" {update_cmd}"
f" {init_cmd}" f" {init_cmd}"
f" {stop_after_init_cmd}" f" {stop_after_init_cmd}"
f" {shell_cmd}"
f" {demo_cmd}"
) )
return result return result