Coder Social home page Coder Social logo

Comments (7)

SISheogorath avatar SISheogorath commented on June 16, 2024 1

This is in general not a problem of the docker image. It's a InspIRCd "bug". Locateded here: https://github.com/inspircd/inspircd/blob/insp20/src/configparser.cpp#L268-L269

It's part of the config parser and as work around you can simply delete the last comment section or add a line break a the end (iirc this solves the problem). Maybe @Adam- can tell us more details.

In general the image is build to simply allow you to add your configs by extending it.
You can use a Dockerfile like this one:

FROM inspircd/inspircd-docker:latest
COPY conf/ /inspircd/conf/

Simply place this Dockerfile into a directory and your configs into a sub directory called conf. That's it :)

from inspircd-docker.

SISheogorath avatar SISheogorath commented on June 16, 2024 1

A fix is incoming: #48

I currently think about what's the perfect solution. Because right now loading modules possibly fails because m_md5 and other "required" modules are loaded afterwards.

Feel free to test it :)

from inspircd-docker.

SISheogorath avatar SISheogorath commented on June 16, 2024

Currently it's not possible, but I'm working on an implementation.

Right now you can only get a copy of the config by provide the directory and then modify it as you need.

Pull requests are welcome :)

from inspircd-docker.

aland avatar aland commented on June 16, 2024

Great, thanks for letting me know. I can stop pulling my hair out thinking it should work.

Only idea I had now was to check for another environment variable which holds the name of additional config to load and check this in the config.sh - but I don't think it would work since config.sh runs before all the modules are loaded.

from inspircd-docker.

SISheogorath avatar SISheogorath commented on June 16, 2024

In general it's not a problem. The config for modules is loaded during the module initialization or later. And this is way after the whole config is read and parsed by InspIRCd.

So feel free to modify the config.sh. But in general as already mentioned: Simply load the mount the modified config is the easiest way.

If you want to run it in Swarm-mode or something, you can also build in your own config.

from inspircd-docker.

aland avatar aland commented on June 16, 2024

I appreciate your time, just wanted to mention that it seems to be necessary to include the customised inspircd.conf file before the container is ran for the first time. What I was doing was running the image so that it would populate the volume, then modify the files in the volume and restart the container.
This would produce cryptic error messages like Syntax error - start of tag expected at /inspircd/conf/inspircd.conf:542:1 (last tag was on line 534) which made me think I had some problem with my changes.

So I'm now storing inspircd.conf, modules.conf et al modifed as required and usingCOPY conf/*.conf /conf/ in my Dockerfile so that the config files are pre-populated.

from inspircd-docker.

aland avatar aland commented on June 16, 2024

Works for me!

from inspircd-docker.

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.