initos / dob Goto Github PK
View Code? Open in Web Editor NEWTool to bootstrap and manage Odoo instances using docker-compose
License: Other
Tool to bootstrap and manage Odoo instances using docker-compose
License: Other
What is best practice to move forward odoo.versions.yaml with new commits from upstream repositories?
PS C:\Users\<my user>\Git\dop> ./setup.sh
PS C:\Users\<my user>\Git\dop> docker-compose build
[+] Building 17.9s (1/1) FINISHED
=> ERROR [internal] booting buildkit 17.9s
=> => pulling image moby/buildkit:buildx-stable-1 17.1s
=> => creating container buildx_buildkit_default 0.8s
------
> [internal] booting buildkit:
------
Error response from daemon: crun: creating cgroup directory `/sys/fs/cgroup/systemd/docker/buildx/li
bpod-b62494e7f96ad4d80e23ee9ecbdb05ae847da3a7d32c0255b519e7fbc33c6bd7`: No such file or directory: O
CI runtime attempted to invoke a command that was not found
Hello,
I would be interested why dob is not separated in different branches for various Odoo versions.
Thank you for the information.
I have Odoo working with this tool perfectly. If I run the tests with this command it works correctly:
docker compose run --rm odoo odoo run --stop-after-init --test-tags /pos_default_partner --test-enable -i pos_default_partner
But when run the tests with:
docker compose run --rm odoo odoo test pos_default_partner
However, when I read the log I get the following message:
2023-11-17 16:24:33,200 1 WARNING ? py.warnings: <frozen importlib._bootstrap>:914: ImportWarning: AddonsHook.find_spec() not found; falling back to find_module()
File "/usr/local/bin/dob", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/doblib/__main__.py", line 136, in main
sys.exit(CIEnvironment(args.cfg).test(left))
File "/usr/local/lib/python3.10/site-packages/doblib/ci.py", line 209, in test
result = pytest.main()
File "/usr/local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/local/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/local/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/local/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/local/lib/python3.10/site-packages/_pytest/main.py", line 267, in wrap_session
config._do_configure()
File "/usr/local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1053, in _do_configure
self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
File "/usr/local/lib/python3.10/site-packages/pluggy/_hooks.py", line 514, in call_historic
res = self._hookexec(self.name, self._hookimpls, kwargs, False)
File "/usr/local/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/local/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/local/lib/python3.10/site-packages/_pytest/faulthandler.py", line 25, in pytest_configure
import faulthandler
========================= test session starts =========================
platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0
rootdir: /srv/odoo/odoo
plugins: odoo-1.0.0, anyio-3.7.1, cov-4.1.0
collected 0 items
========================= no tests ran in 0.00s =========================
ERROR: file or directory not found: pos_default_partner
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
I follow readme executing:
./setup.sh
docker-compose build
docker-compose run --rm odoo odoo init
docker-compose run --rm odoo odoo update # To see how be executed
docker-compose up
In this way I have an Odoo instance running with no issue
I execute docker-compose down -v
and create my .vscode following this guide
Try to run with F5 from vscode but no debugger session is started.
If execute command of tasks.json Odoo is started with no issue too.
I double check if have debugpy installed and ports opened
tcp 0 0 127.0.0.1:8072 0.0.0.0:* ESCUCHAR 164276/docker-proxy
tcp 0 0 127.0.0.1:8069 0.0.0.0:* ESCUCHAR 164289/docker-proxy
tcp 0 0 127.0.0.1:6543 0.0.0.0:* ESCUCHAR 164170/docker-proxy
tcp 0 0 127.0.0.1:5678 0.0.0.0:* ESCUCHAR 164302/docker-proxy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.