containerized Jenkins (#179)
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/179 Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
This commit is contained in:
		
							
								
								
									
										15
									
								
								Jenkins/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Jenkins/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| FROM jenkins/jenkins:lts-jdk21 | ||||
|  | ||||
| USER root | ||||
|  | ||||
| # Docker CLI installieren | ||||
| RUN apt-get update && apt-get install -y docker.io && usermod -aG docker jenkins | ||||
|  | ||||
| # grant user jenkins access to /var/run/docker.sock | ||||
| RUN usermod -aG messagebus jenkins | ||||
|  | ||||
| # install plugins | ||||
| COPY Jenkins.plugins /usr/share/jenkins/ref/plugins.txt | ||||
| RUN jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt | ||||
|  | ||||
| USER jenkins | ||||
		Reference in New Issue
	
	Block a user