Hello. For me odoo this is a new experience. In ubuntu, I installed an odoo server where I can develop modules. I decided to install the docker and use the docker-image. My question is: is it possible to develop modules in docker too? How to find a container project on a computer under ubuntu and windows systems? Where can i find documentation for this? At the moment, either I do not understand something, or I lose sight of something.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
hello,
Yes you can run Odoo in a docker container. When developing in docker I use bind mounts and typically use docker-compose
Please do not take this the wrong way - I’ve been exactly where you‘re at right now with these questions. I would highly recommend you get a general sense of docker and Linux overall if you want to develop.
Developing in Odoo, or any application, requires a tremendous amount of patience when learning. I will give you a direct answer but I highly recommend you learn how to use vscode or pycharm, the docker process and syncing of data.
Here you go:
1) When using docker, I suggest using docker-compose for odoo and your database
2) Use bind mounts so it’s easy to modify your code
3) When starting docker-compose, use
command: odoo -u your_module_name -d your_database_name
So it’s easy to type docker restart odoo
4) when syncing data, pycharm has a built in remote interpreter so you can keep a copy of the files on Windows and a copy on Ubuntu. When editing files in Windows 10, it will change the files on your server at the same time
5) If you do not want to sync that way, you can use NFS to sync but that can come with its own little issues
I really do suggest you get a firm understanding of the basic docker processes, SSH and how to edit/sync files before going further down this road.
I wish you the best of luck
Great add with:
command: odoo -u your_module_name -d your_database_name
Can you show a snippet on which file you put this in so that it runs with docker restart odoo?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 24
|
788 | ||
|
2
Oct 23
|
5306 | ||
|
0
May 22
|
1514 | ||
|
3
Sep 21
|
6580 | ||
|
0
Oct 23
|
1195 |
thanks for your reply