İçereği Atla
Menü
This question has been flagged
2 Cevaplar
19741 Görünümler

I'm using MacOS Catalina 10.15.6, Docker version 19.03.12.


Using the follow command to get the Odoo 13 version(which is the latest):

Docker pull odoo


When the container starts, it shows  the following command:


2020-09-02 03:56:29,777 1 INFO ? odoo: Odoo version 13.0-20200826

2020-09-02 03:56:29,777 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf

2020-09-02 03:56:29,777 1 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/addons/13.0', '/mnt/extra-addons']


Which means the path "/mnt/extra-addons" is the addons path, I can put the thirtd-part modules or my own modules here. 


[I make it clear here, I just put the module INSIDE the docker, and DONT want to mount the MAC filesystem onto the docker. ]



And I put the module(which is the module from apps.odoo.com, must be useful) into the "/mnt/extra-addons" folder, so the modules should be found in Odoo.


But the question is: I put several modules in that folder, and cannot find the modules, so cannot install it.


How could I install the third-part module successfully?


Thank you for reply.    

Avatar
Vazgeç

Did you restart odoo within container and update list + update in odoo?

If so, check if /mnt/extra-addons is actually mounted and not aliased.

Or else, just change the docker image file, adding new path, or modify odoo.conf

How did you put your modules into /mnt/extra-addons? Do you use the MAC path? Then you can restart your container afterwards and you should see the modules after updating the apps in the UI App module.

Best Answer

Just using '-v' option when you run the docker container.  

   e.g.  -v $(pwd)/addon-path-on-host:/mnt/extra-addons

see here for more: https://docs.docker.com/storage/volumes/

Avatar
Vazgeç
Üretici Best Answer

@Cayprol 

I'm not restart odoo within my container... ... How's the command to restart odoo inside container? I only know the command outside the container and have restarted the container, it doesn't works.


Could I just use the /mnt/extra-addons folder, not mount a MAC folder to this path? I mean just copy the app into the "/mnt/extra-addons", could this work?



@ti-sq 

Just login the container, and put the modules into /mnt/extra-addons, will it work?

I find now the /mnt/extra-addons will be erased after some hours, this folder cannot put file directly in?




Make a new docker image file perhaps will work, I'll try that.

Thank you very much.

Avatar
Vazgeç
Related Posts Cevaplar Görünümler Aktivite
0
Ağu 24
899
2
Eyl 23
2338
2
Kas 22
6196
1
Ara 23
2607
0
Eyl 23
2713