Coder Social home page Coder Social logo

Comments (7)

rroemhild avatar rroemhild commented on May 18, 2024

This hopefully was fixed with 21bac1d. Did you test this with the latest image from docker index or build by yourself?

from docker-ejabberd.

rhalukongor avatar rhalukongor commented on May 18, 2024

I've been using the image from docker index; will try building myself. Thanks a lot for the info.

from docker-ejabberd.

rroemhild avatar rroemhild commented on May 18, 2024

You're welcome. This should also work with the latest rroemhild/ejabberd:latest build from docker index.

from docker-ejabberd.

rhalukongor avatar rhalukongor commented on May 18, 2024

Off topic: Which is the best place install modules.
I've tried pre install script; fails with erlang nodedown because ejabberd is not started yet.
Any other option involving ejabberdctl restart is out of question since docker container would quit.
This is coming from someone with no erlang experience at all :)

from docker-ejabberd.

rroemhild avatar rroemhild commented on May 18, 2024

Modules get installed in /opt/ejabberd/.ejabberd-modules. To automate module installation you have to run one or more post scripts after module update spec i.e. 40_install_modules.sh

#!/bin/bash
set -e

source "${EJABBERD_HOME}/scripts/lib/base_config.sh"
source "${EJABBERD_HOME}/scripts/lib/config.sh"
source "${EJABBERD_HOME}/scripts/lib/base_functions.sh"
source "${EJABBERD_HOME}/scripts/lib/functions.sh"

${EJABBERDCTL} module_install mod_admin_extra

You can test this inside a running container:

$ docker exec -it <containerid> ejabberdctl modules_available
$ docker exec -it <containerid> ejabberdctl module_install mod_admin_extra

from docker-ejabberd.

rhalukongor avatar rhalukongor commented on May 18, 2024

I beileve the way you've suggested requires an ejabberdctl restart which causes container to exit. Tried your suggestion + uncommenting (initially commented out) sections related to modules installed via sed and reload_config instead of restart; also doesn't work. I was thinking of VOLUME'ing yml file, so it stays intact after a restart however I can't imagine a production scenario if I do that. Any suggestions?

from docker-ejabberd.

rhalukongor avatar rhalukongor commented on May 18, 2024

Sorry to bug you up until now. It all boils down to Ejabberd and its -not so ready for docker- module system. A relevant discussion is here: processone/ejabberd#487 for anyone stops by.

from docker-ejabberd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.