GithubHelp home page GithubHelp logo

Comments (5)

ppikula avatar ppikula commented on July 23, 2024

Hi!
How did you do that, where did you copied it? Did you enable modules in the config file? All in all, it think it should work, if you copied them(compiled beam files) into correct place. This place should look like this /opt/mongooseim/rel/mongooseim/lib/ejabberd-2.1.8+mim-1.4.0-884-g44f7e85/ebin/ The problem is this "random" suffix is generated from git commit sha, so it is going to change with every new commit/version.

I see a couple different, possible solutions to your problem.

  1. You can fork Mongoose, add the modules, check if they work and replace the link to the repo here. Then, it will clone you modified version
  2. Modify Dockerfile in the same place, before running make rel. In this approach you don't need to fork and it is likely to work with new versions of Mongoose.
&& make configure with-mysql with-pgsql with-redis with-cassandra \
&& make rel \

to

ADD ./mod_interact.erl ~/mod_interact.erl 

[... skipped] 

&& make configure with-mysql with-pgsql with-redis with-cassandra \
&& mv ~/mod_interact.erl  /opt/mongooseim/apps/ejabberd/src/ \
&& make rel \

Let me know if any of the ideas above solve you problem or we should look for a different one

from mongooseim-docker.

ppikula avatar ppikula commented on July 23, 2024

Hey, I thought about it and I think, I found more clean solution. Just do the same as when you want to replace the config file.

FROM mongooseim/mongooseim-docker

## add the module to the source directory 
ADD ./mod_http_offline.erl /opt/mongooseim/apps/ejabberd/src/

## recreate mongoose release  - will compile the new module and will add it where it 
## needs to be
RUN cd /opt/mongooseim && make rel

##  uncomment if you want alter config file, do that after make rel! otherwise
##  it will be overwritten 
# ADD ./ejabberd.cfg  /opt/mongooseim/rel/mongooseim/etc/ejabberd.cfg

I was trying to do that on my own and I saw the following error during compilation, which might be the reason why it doesn't work in your case:

/opt/mongooseim/apps/ejabberd/src/mod_http_offline.erl:47: Warning: call to http:request/4 will fail, since it was removed in R15B; use httpc:request/4

from mongooseim-docker.

ppikula avatar ppikula commented on July 23, 2024

@rrigoni any updates? have you managed to enable the modules?

from mongooseim-docker.

rrigoni avatar rrigoni commented on July 23, 2024

Hi @ppikula.
Yes, I did. But I did a lot of adjustments in the modules to get it
working. The module was written to ejabberd 2.2.x and a lot of things
changed.

Now I have a version of Mongooseim working like a charm with push
notifications.

Would you like to merge them into the docker image?

I can submit a pull request with my solution.

The solution I used is your last suggestion. I simply copied the modules to
Mongooseim's folder and call make rel.

Thanks .
On Sep 9, 2015 07:24, "Paweł Pikuła" [email protected] wrote:

@rrigoni https://github.com/rrigoni any updates? have you managed to
enable the modules?


Reply to this email directly or view it on GitHub
#4 (comment)
.

from mongooseim-docker.

ppikula avatar ppikula commented on July 23, 2024

Hi @rrigoni !

To be honest I don't see a point in merging it into the docker image. I think it is good as it is - to create a new docker file, which derives from the "base" image and then add your stuff like modules/config.

However, if you put effort in porting this module and it works. I think It is a good idea to make a pull request to Mongoose, of course if the license allows it and others will agree. IMO It is valuable, and I can help you to get it merged into the master branch, unless It should stay in a separate repo for some reasons.

from mongooseim-docker.

Related Issues (4)

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.