跳至內容
選單
此問題已被標幟
2 回覆
20094 瀏覽次數

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.    

頭像
捨棄

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.

最佳答案

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/

頭像
捨棄
作者 最佳答案

@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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 24
1225
2
9月 23
2752
2
11月 22
6942
4
7月 25
445
1
12月 23
3262