-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 use odoo:17 image in devcontainer? #508
Comments
@mojmirdurik I have made a tutorial about this. Hopefully this can help your problem |
@teguhteja Thank you for the tutorial. To make it functional out of the box, I have made the following changes:
Your tutorial allows developing Odoo custom modules without installing Odoo locally. However, the proposed approach differs from the devcontainer approach because the IDE (VS Code) does not see the Odoo environment. This means that if I have not installed Python locally or if I want to use some Python packages installed by What I need is for the IDE to run inside the Odoo Docker container. That is exactly what devcontainers are designed for. How do you share the same Odoo development environment among all team members? |
Hi @mojmirdurik I am happy with the advice you give to me. I'll change that on my github. I will try some of the things above
|
Hi @mojmirdurik it seems like this devcontainer method is quite specialized and not many people use it for odoo + devcontainer. i tried to find some tutorials but instead found some of these repos. maybe you can ask your question there.
and thank you for your explanation. i learned a lot from there |
I am trying to create a devcontainer for the development of custom Odoo modules. This devcontainer is based on the official
odoo:17
image. You can see the current state of my devcontainer in my-odoo-project.zip. I would like to ask the following questions:It took me a few days of effort to discover that I needed to add a new user with UID/GID 1000 in the
odoo:17
image to make the devcontainer work with this image. See the creation of thedeveloper
user in.devcontainer/Dockerfile.fajnodoo17
and the"remoteUser"
in.devcontainer/devcontainer.json
. Here are my questions:odoo:17
image overview describing how to extend the image by user creation?How can I map the installed Odoo modules (applications) to my devcontainer? Where are they located in the
odoo:17
image?How can I run
odoo-bin
command in the devcontainer (or Docker container)?Do you have any other recommendations on how to correctly use the
odoo:17
image in a devcontainer for development? Would it be possible to include these recommendations in theodoo:17
image overview?The text was updated successfully, but these errors were encountered: