Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/dev.docker-compose.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ services:
- ./data/addons:/data/odoo/addons
- ./data/filestore:/data/odoo/filestore
- ./data/sessions:/data/odoo/sessions
# pytest
- ./odoo/.pytest_cache:/odoo/.pytest_cache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to create a volume instead of a mount bind.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mount bind = directory or file (?!) exists in the project directory, it's visible to the user in the file system / editor.
It should exists before runing docker compose and have the right file permissions.

Instead volume is created / managed / prunned automatically by docker.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then you mean in the docker file !?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to create a volume instead of a mount bind.

AFAIK it's already a volume or I missed smthg !?

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use volumes to define multiple types of mounts; volume, bind, tmpfs, or npipe.
https://docs.docker.com/reference/compose-file/services/#volumes:~:text=You%20can%20use%20volume,bind

image

# mount home dir
# - ./.home/.bash_history:/home/odoo/.bash_history
kwkhtmltopdf:
Expand Down
1 change: 1 addition & 0 deletions src/odoo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/repo.yaml
/pip-selfcheck.json

/.pytest_cache
/external-src/
/src/
/links/
Empty file added src/odoo/.pytest_cache/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion src/odoo/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[pytest]
addopts = --odoo-database=dbtest
capture = no
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change needed ?

Copy link
Member Author

@bealdav bealdav Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I added it to break things :-)

Copy link
Member Author

@bealdav bealdav Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose you to try a fresh version of odoo pytest and see warnings on 18.0

filterwarnings =
ignore::DeprecationWarning