You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want jenkins jobs to be able interact with docker. In order to do this, I put the jenkins user in the docker group, so it would have permission to use the docker socket file. However, because the slave process is run with chpst -u jenkins (https://github.com/chef-cookbooks/jenkins/blob/master/templates/sv-jenkins-slave-run.erb#L10) the jenkins process only gets the jenkins group and ignores the docker group. This causes permission errors from docker.
What is the reason for running the process using chpst? Can we change it to use all the groups?
Steps to Reproduce:
Add the jenkins user to a new group
Restart the slave
Run a job that just runs groups
Expected Result:
The result should be jenkins docker or whatever the other group you put it in was.
Actual Result:
You just get jenkins.
The text was updated successfully, but these errors were encountered:
…ps of the jenkins user
* Add attribute 'runit_groups' to jenkins_jnlp_slave resource to configure any of the user's groups defined in this attribute with the runit_service.
Signed-off-by: Jonathan An <jan@esri.com>
Cookbook version
5.0.6 (but it appears the same in master)
Chef-client version
N/A
Platform Details
Ubuntu 14.04 in a VMware VM
Scenario:
I want jenkins jobs to be able interact with docker. In order to do this, I put the jenkins user in the docker group, so it would have permission to use the docker socket file. However, because the slave process is run with
chpst -u jenkins
(https://github.com/chef-cookbooks/jenkins/blob/master/templates/sv-jenkins-slave-run.erb#L10) the jenkins process only gets the jenkins group and ignores the docker group. This causes permission errors from docker.What is the reason for running the process using chpst? Can we change it to use all the groups?
Steps to Reproduce:
groups
Expected Result:
The result should be
jenkins docker
or whatever the other group you put it in was.Actual Result:
You just get
jenkins
.The text was updated successfully, but these errors were encountered: