Question #21054
openDockerize rudder-server
Description
Hello,
It would be great to be able to run the complete Rudder server and all its components in a docker environment.
Has this already been an idea that has interested someone?
Updated by Benoît PECCATTE over 2 years ago
- Target version set to Ideas (not version specific)
Hi,
Would you like to try it ?
We tested it, but some work is needed to make it work as anyone may like.
First you can use this as a base : https://github.com/Normation/rudder-tools/blob/master/ubuntu.Dockerfile/Dockerfile
You should replace the Rudder version from 6.1 to 7.1
One this to be careful of is that Rudder saves its state on the filesystem and modifies some system files according to its own configuration, so the container must be mostly writable.
Another thing is that it needs port 80, 443, 5309, 8080 and postgres available for listening.
Finally you cannot upgrade the container since Rudder has upgrade script that run during the package postinstall.
Tell me if you you want to help me make this better.
Regards,
Updated by Nicolas Ecarnot over 2 years ago
- This issue references the issue https://issues.rudder.io/issues/17418
- The correct URL of the Dockerfile is https://github.com/Normation/rudder-tools/blob/master/ubuntu.Dockerfile
- Thank you Benoît for your answer. I'm glad to see that I'm not the first one to see an interest in containerizing this.
Indeed, one of the challenge will be to deal with the issue of running systemd inside a docker container. If too difficult, podman may be an option.
Updated by Nicolas Ecarnot over 2 years ago
Benoît,
I'd be glad to test it, and I just did.
When launching a docker build, I see that systemctl.py is missing (there is no files/docker/systemctl.py bc there is no files dir).
Is it something we can find somewhere else?
Nicolas