Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7730 Zobrazení

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.

Avatar
Zrušit
Autor

thanks for your reply

Nejlepší odpověď

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

Avatar
Zrušit

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?

Related Posts Odpovědi Zobrazení Aktivita
1
kvě 24
1299
2
říj 23
6093
0
kvě 22
2112
3
zář 21
7399
0
říj 23
1918