I think I am late by a year jeje. But I ran into the same problem. Later I
realized the config.xml was overwritten because I had other 2 groovy
scripts that created a new user, then when running the container I saw
those groovy scripts being executed and the config.xml file was generated,
overw
That description seems like a bug to me, though I can't see anything in the
Docker scripts that helps me understand where the problem would be. If I
understand your description correctly, you need both the init.groovy.d
scripts and the install-plugins.sh call before you see the problem. The
groov
Thanks for your reply. I tried to narrow things down:
A simple Dockerfile, that only copies "my" config.xml to
/usr/share/jenkins/ref/ works fine. The config.xml is kept unmodified as
expected.
(The only thing, that is different between "my" config.xml and a default
config.xml is the line fals
Since you're adding the configuration in your Dockerfile, it should be
there when the docker image is created. Since you can see it for the first
few seconds in the running image, I think that means the jenkins.sh startup
process which copies from "ref" to "/var/jenkins_home" did what it was
expec
Hi there,
I am currently working on a Docker image, that is derived from jenkins:alpine.
In my Dockerfile I copy a config.xml in the the reference content directory
(/usr/share/jenkins/ref) and add some xml content with Ansible-XML. (The
content added, is a cloud configuration for a Docker host)