콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
20198 화면

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
1344
2
9월 23
2878
2
11월 22
7163
2
8월 25
402
4
7월 25
666