Comments (7)
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.
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.
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.
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.
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.
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 run
ning 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.
Works for me!
from inspircd-docker.
Related Issues (20)
- [Question] How to enable ldap properly? HOT 3
- CVE-2019-14697 HOT 1
- Delay in delivery of messages HOT 2
- Log file is missing HOT 4
- Troubleshooting Linking 2 servers HOT 3
- Unable to load m_mysql.so HOT 1
- Custom Opers HOT 1
- Cannot create oper/connect password. HOT 3
- /mkpasswd - Unknown command: mkpasswd HOT 4
- conf/*.sh don't execute correctly if bind mount is mounted on a filesystem with no exec
- Links Do Nothing? HOT 2
- Migrate from Travis CI to GitHub Actions HOT 3
- Example in Readme.md is incorrect and links are broken.
- HTTP/1.1 400 Bad Request HOT 5
- Configurations file added into conf.d or as a secret not being read HOT 2
- Look into using Distroless for the container base image
- Consider migrating from Docker Hub to the GitHub Container Registry HOT 5
- Multi-architecture support for arm64
- ChanServ, NickServ, etc-- unavaliable
- How to override with conf.d? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspircd-docker.