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

I followed below Github link to create Docker container for version 16 and it was successful attempt, but still need help.

github(dot)com/bithabib/docker_course  -- I can't post lniks due to Kerma

i didn't changed anything in docker-compose.yml file because it is first attempt so, i can check how it works, i followed all steps as is and then run as below:


odoo@odoo-VirtualBox:~/odoo-docker/my_odoo_app$ sudo docker-compose up -d

[sudo] password for odoo:

Starting my_odoo_app_db_1 ... done

Starting my_odoo_app_web_1 ... done

when run in browser localhost:8069 it showed me database creating page where I created first database, after creating db now I can see all Odoo default apps in browser window.

checked as below to find files but failed, nothing in config, addons, /mnt folders?

odoo@odoo-VirtualBox:~/odoo-docker/my_odoo_app$ ls

addons  config  docker-compose.yml  odoo_pg_pass

odoo@odoo-VirtualBox:~/odoo-docker/my_odoo_app$

i checked folders but nothing found anything in below folders

doo@odoo-VirtualBox:~/odoo-docker/my_odoo_app$ ls config

odoo@odoo-VirtualBox:~/odoo-docker/my_odoo_app$ ls addons

odoo@odoo-VirtualBox:~/odoo-docker/my_odoo_app$ ls /mnt

Q1: where i can found the addons files provided by Odoo?

Q2: how I can create addons and custom addons folders separately for each Odoo version?

Q3: how I can setup Pycharm to access and work with all versions? will this require to install separately for each version?

Q4: -if it is permissible- how I can start these Odoo Docker Containers all simultaneously or some specific automatically when Ubuntu starts or whenever it required to?

please help.

with regards

Avatar
Discard
Author

anyone can help????

Author

STILL Waiting for an expert who can help...

Author Best Answer

this reply is for @Rodrigo Moya  ( I have to mention it because of serious problem I am facing here in this forum )

thanks a bunch @Rodrigo Moya for guiding and helping us, at least one member on this forum trying to help me.

a) if you're using the dockers container

yes as already mentioned in topic title

sir, I am struggling to create Odoo Docker Containers which I can work on and I can share with other developers by copying the container files, that's why I need all versions separately, is it possible? if yes, I want help from scratch all steps involved (like creating folders for a version and how start working, different things in your previous docker-compose.yml needs to understand like network, ports for db, driver, etc., I want things separately as much as possible within for diff versions containers, database, addons and my custom addons too) because I do not have much knowledge regarding this. as mentioned earlier, I just followed the github link as is to check how it works, now I started realizing  the things a developer can face ( seniors like you... are already well aware ) so, I asked for help.  OR i misunderstood utilizing Docker Container(s) for this purpose? 

I can also struggle to understand and utilize VSCode (as you prefered) but this also needs to configure for all different versions? how to?

also, how i can completely remove a docker container from disk to claim disk space after testing?

hope it is clear now.

with kind regards  

Avatar
Discard
Author

Waiting Since 8 Days...

Best Answer

Hi Roshan : Yeah, I look your post on the other one who I also wrote. 

Acording to your questions : 

Q1: where i can found the addons files provided by Odoo?

I don't know if that's what you're looking for, but is the "addons" folder inside odoo instalation. if you're using the dockers container, you can download that folder from the Odoo's github. 


Q2: how I can create addons and custom addons folders separately for each Odoo version?

in odoo.conf, you got the addons_path where you can declare the addons folder. Also, you can declare as many folders as you want for custom addons separated by a comma. For example, when we work with providers, each one of them has a different addons folder. 

Q3: how I can setup Pycharm to access and work with all versions? will this require to install separately for each version?

I don't know if you could do that, and could be hard to manage though. I don't use Pycharm, but if your are using dockers you could use an external folder from the addons, and everytime you need to make a change, simply restart the container. No installation needed. 


Q4: -if it is permissible- how I can start these Odoo Docker Containers all simultaneously or some specific automatically when Ubuntu starts or whenever it required to?

Again, I don't find very right way, but you can install several versions using dockers: The only thing is to use different ports for each version. In my case, I got installed Odoo from 12 to 18 (not running simultaneously), and with different port (Odoo and Postgres). Then, I got using ports 8012, 8013, 8014 and so on until the last odoo version. 


Hope it helps.


Avatar
Discard
Related Posts Replies Views Activity
1
Nov 22
3386
1
Nov 20
5539
6
Jun 20
21557
0
Jun 20
9981
0
Feb 18
6727