Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
19545 Lượt xem

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.    

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhất

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/

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 24
720
2
thg 9 23
2134
2
thg 11 22
5845
1
thg 12 23
2294
0
thg 9 23
2486