fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

Issue with Jenkins Kubernetes Plugin #5919

Open 3r1co opened 8 years ago

3r1co commented 8 years ago

Hello, after some testing with the Fabric8 Jenkins we found a quite strange issue with the Jenkins Kubernetes Plugin. It seems that the plugin mounts always the path /home/jenkins/workspace from the Host into the jnlp-client container. For me, it would make more sense the $JENKINS_HOME directory of the Jenkins Container would be mounted here. Also, for us it raised an issue since the Home Directory Drive is very small and because of that a lot of space is occupied, so it would be good if the same physical storage as for the $JENKINS_HOME in the Jenkins Container would be used. Is there a reason why a new path on the host system is mounted anyway? Best regards Eric

jstrachan commented 8 years ago

so this issue looks to be related to the jenkins-docker image and the use of the Kubernetes Plugin: https://github.com/fabric8io/jenkins-docker/blob/master/config/config.xml#L27

we can probably disable that now right?

3r1co commented 8 years ago

Wouldn't it be possible to use a volume container for the /home/jenkins in this case? Our problem is as well that all the build data stays on the host system after the build, which is a potential security threat.

iscra commented 8 years ago

I have just noticed this issue in our Fabric8 cluster.

This seems to me quite a high priority bug since the jenkins workspace volume (PV) does not work currently as intended (I believe).

For better understanding the current status as I could trace it.

Running on 60594bc7b77 in /home/jenkins/workspace/workspace/my-test-project