[FIX] use relative path for compose to avoid 0k dev-pack IOError

The 0k dev-pack's compose script doesn't handle absolute paths correctly.
It passes HOST_COMPOSE_YML_FILE to the container, which tries to open
it directly instead of using the mounted path.

Add run_compose() wrapper that changes to PROJECT_ROOT before calling
compose with a relative path, ensuring consistent behavior regardless
of the current working directory.
This commit is contained in:
Stéphan Sainléger
2026-02-03 17:15:20 +01:00
parent ebc1adb4fa
commit ee27536011
9 changed files with 21 additions and 11 deletions

View File

@@ -49,4 +49,4 @@ exec_python_script_in_odoo_shell "$DB_NAME" "$DB_NAME" "$PYTHON_SCRIPT"
# Launch Odoo with database in finale version to run all updates
compose --debug run "$ODOO_SERVICE" -u all --log-level=debug --stop-after-init --no-http
run_compose --debug run "$ODOO_SERVICE" -u all --log-level=debug --stop-after-init --no-http