Skip to Content
Menu
This question has been flagged
2 Replies
13752 Views

For development purposes: I have 2 community version odoo 10 and 12. Can it be run in the same OS Ubuntu 18.04? because now, I have 2 Virtual machines for odoo 10 and odoo 12. when i have a coding task in both versions I have to switch on other machines. is there any way to run both version on the same OS/Environment?

Avatar
Discard
Best Answer

Hi,

For this lot of blogs and writings are available in the internet. You can run the odoo 10 and odoo 12 in the same machine, for this you have to install both the python 2 and python 3. Odoo 10 is running in python 2.7 and odoo 12 is running in python 3. Once you install it, you have to create separate conf file for 10 and 12, as well as separate service.

Have a look at the below threads:

1. Install multiple Odoo instances on a single machine 

2. How to run odoo 10 and odoo 12 together in one system on ubuntu

Thanks

Avatar
Discard
Author

Thanks, Niyas! In addition, do I have to create also a separate user for each version?

It's up to you system user, for the postgres you can create separate users

Author

Okay, will try on this. Thanks

Best Answer

I would use docker for multi versions, so you can have odoo v10 and v12 by container.  

The beauty of this is even multiple odoo instances of the same version.  

I think postgresql v10 works fine for odoo v10 as well, so it goes like all odoo container depends on the same postgresql container.  

All instances use different ports, so you can interact with them in the browser.  

All instances share the same addon directory and as well a individual directory.

Avatar
Discard
Author

Thanks, Justin . do you have an available tutorial for this?

I don't know any full guide specifically to odoo. Docker itself is a lot to learn and as a developer I think it's worth the time and effort.

For official odoo docker guide,

https://hub.docker.com/_/odoo/

For official odoo v12 Dockerfile repo

https://github.com/odoo/docker/blob/c6b79809f0772c419f681889b810ae4aaff8ec37/12.0/Dockerfile

For building image based on custom Dockerfile(modify Dockerfile from the official repo)

https://docs.docker.com/engine/reference/commandline/build/

You can google general docker CLI to get a deeper understanding. FYI, Docker on Windows requires Hyper-V, so it conflicts with VBox.

Related Posts Replies Views Activity
9
Aug 23
11822
3
Jan 24
29140
3
Oct 20
3084
4
Jan 24
5924
2
Jul 22
2316