Running crowd application (v4.0) in kubernetes container using docker crowd image. Need TLS certificates to be installed and tomcat/server.xml to be updated in run time. Tried to map certificate and tomcat/server.xml file to shared volume, When pod spin up the shared volume data is getting overwriten. Tried to use execute command/args to image but after executing the command pod is exited (seems the command is overwritting the entrypoint command inside the pod.
Is there any solution where certificates and server.xml can be updated in runtime and then start crowd.sh
tl;dr mount your custom server.xml to /opt/atlassian/etc/server.xml.j2
As per the note under the "Advanced Configuration" section of https://hub.docker.com/r/atlassian/crowd , server.xml and other config files tied to the installation folder are generated from Jinja2 templates. You noticed that server.xml is overwritten on startup; they're overwritten using the template located at /opt/atlassian/etc/server.xml.j2
Whilst our built-in template contains a number of merge fields that are resolved at startup, if you place a static file at this location it will simply be used as-is.
That should sort out your problem! Let me know how you go :)
Two weeks left in our Open DevOps partner spotlight - and we’re excited to be shining a light on CI/CD. A foundational piece of DevOps, CI/CD needs no introduction… but we’ll give one anyways! Cont...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events