-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure for Odoo running inside a container #59
Comments
Hello @brandon-blb , Actually the extension has been developped with the odoo repository architecture in mind, and it can indeed not work with a pre-packaged odoo.
I'll keep this issue opened until we managed to adapt the extension for docker images. |
Thank you for your response. Will see what I can do from my end. The idea for me is for my project to have the same "odoo source" in the container as well as my project folder. This way I can use the python debugger to debug Odoo source code as well. |
Then another question (still related to container setup) I assume that this is because my host python (where I link the path) does not have all the packages installed and there is no way to link the python path to the python inside my container? |
It should work. I didn't tested it though, and I hope I don't forget a mandatory directory. |
I'm not really familiar with containers, but I think it would be quite difficult, as the container has its own python package installation. The extension can handle virtual envs, maybe you could create one that has the same installed packages than in your container? |
Ok. Let me explore a bit and see what I can do. Thanks |
in case it is helpful, The way I am currently working with this extension is by modifying the Docker file for the latest build which in my case is 17.0, removing the command that installs the prebuilt odoo package, and adding dependencies required for development which can be found in the documentation and then mounting the odoo source as a volume and setting that location in the extension configuration section. |
Your setup
Version: 16.0
Operating System: MacOs (Running Odoo in docker using official image)
IDE and/or Integration tool (for example: Vscode - official extension): Vscode
Describe the bug
Not really bug, more a question. Cannot get the extension to detect odoo installation because it is inside the container.
I tried copying the Odoo folder (/usr/lib/python3/dist-packages/odoo/) from the container to my host, but extensions is not picking it up as a valid installation path.
How can I setup the extension so that it uses the python and odoo running in my container?
Thank you in advance
The text was updated successfully, but these errors were encountered: