rroemhild / docker-ejabberd

Dockerfile for Ejabberd server
MIT License
268 stars 160 forks source link

Installation of a Contrib-Module if a Container start #145

Closed DnaMes closed 7 years ago

DnaMes commented 7 years ago

Hello. I sitting on a problem and I cant find a solution...I want to use the mod_rest contrib-module for the first time I run the container. I added for the first try "EJABBERD_CONTRIB_MODULES=mod_rest" in Dockerfile and for second I'd insert "-e EJABBERD_CONTRIB_MODULES=mod_rest \" as environment variable to my start script. In both cases i ran into an error because my eyabberd.yml contain mod_rest configurations which cannot load because the module is not installed.

If I thinking about it, I found out that it cannot work because I can only update the constrib modules if I run ejabberd but ejabberd run into an error because of the mod_rest configurations in the ejabberd.yml.

Any ideas or is that an issue?

DnaMes commented 7 years ago

My solution: I've copied the mod_rest.erl to the src folder of ejabberd before compiling.