Giter VIP home page Giter VIP logo

Comments (2)

who avatar who commented on June 30, 2024

@rroemhild

Here's a solution I have experimented with:

    docker run -d \
        --name "ejabberd" \
        -p 5222:5222 \
        -p 5269:5269 \
        -p 5280:5280 \
        -h 'xmpp.example.de' \
        -e "XMPP_DOMAIN=example.de" \
        -e "ERLANG_NODE=ejabberd" \
        -e "[email protected] [email protected]" \
        -e "[email protected]:password1234 [email protected]" \
        -e "TZ=Europe/Berlin" \
        -e "EJABBERD_SOURCE_MODULES=mod_hello_world mod_foo_bar" \
        -v /tmp/modules_to_install:/opt/ejabberd/module_source \
        rroemhild/ejabberd

Note the new environment variable above, EJABBERD_SOURCE_MODULES. The value of this variable are module names, separated by space. This allows a post processing script to iterate over $EJABBERD_SOURCE_MODULES. For each of the module names found inside $EJABBERD_SOURCE_MODULES, the post processing script can attempt to copy the module folder from the folder $EJABBERD_HOME/module_source/ into the ejabberd modules folder. After the copy occurs, ejabberdctl module_check $module_name can be performed, and if that succeeds, $ejabberdctl module_install $module_name can be performed.

tldr;
A new environment variable (EJABBERD_SOURCE_MODULES) defines modules which should be copied from a shared volume and installed into ejabberd.

from docker-ejabberd.

who avatar who commented on June 30, 2024

I've been testing the approach above and found it to be working very well. I will submit a PR with the post script.

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.