I want to run my extra-addons module in dockerized odoo container
The solution to this problem has been resolved as-
Firstly i mounted my local folder which contains my extra-addons by the command-
$ docker run -v /path/to/your/local/folder:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo
Then check weather your local folder is mounted on the odoo container or not by-
$ docker exec -u root -it odoo /bin/bash
After logging-
$ ls /mnt/extra-addons
You should see your files which were present in your local/folder. Now, its done just restart your docker odoo server
To stop-
$ sudo docker stop db
$ sudo docker stop odoo
$ sudo service docker stop
To Start-
$ sudo service docker start
$ sudo docker start db
$ sudo docker start -a odoo
Now you can install your modules from the app.
Ujjwal Singh Baghel
Full Stack Developer and Entrepreneur Enthusiast. Launched "www.cafiles.net". Indexed all public FTP server to download any Movies and TV Series for free.
Updated on June 30, 2022Comments
-
Ujjwal Singh Baghel almost 2 years
I have installed Docker in my system with odoo:latest and postgres:latest as a container, and i can successfully start & stop my odoo service.
But the problem is i can only see the base odoo modules in it instead i want to run my own created modules along with the base modules in the dockerized odoo.
I have searched many links but but failed to understand.
What should i do to run my own modules ?
Please help me with all the steps to it.
Thanks in advance.
-
Ujjwal Singh Baghel almost 7 yearsMounting has been done already, i just want to know how can i install my custom addons to in docker-odoo.
-
Anand Tripathi over 5 years@UjjwalSinghBaghel please let me know if you found a answer to that
-
Ujjwal Singh Baghel over 5 years@anandtripathi yes, I found my answer and its posted above. You can refer it, let me know if you have any doubts.
-
Anand Tripathi over 5 years@UjjwalSinghBaghel you have mounted your local folder so that is in the filesystem of host, I want to dockerized my addons also like in image.
-
Ujjwal Singh Baghel over 5 years@anandtripathi when you pull the Odoo image in docker container the addons is mounted by-default there!