首页 > 其他分享 >jenkins

jenkins

时间:2022-12-16 20:12:45浏览次数:25  
标签:bin root usr jenkins docker local

[root@jenkins jenkins]# cat docker-compose.yml
version: '3.1'
services:
jenkins:
#image: jenkins/jenkins:lts
image: jenkins:2.340
volumes:
- /data/jenkins/data:/var/jenkins_home
- /run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- /usr/bin/kubectl:/usr/bin/kubectl
- /usr/local/maven3:/usr/local/maven3
- /usr/local/sonar-scanner:/usr/local/sonar-scanner
- /usr/local/node:/usr/local/node
- /root/.kube/admin.conf:/root/.kube/admin.conf
- /usr/local/java/jdk1.8.0_144:/opt/java/openjdk
- /root/.m2:/root/.m2
ports:
- "8080:8080"
- "50000:50000"
restart: always
container_name: jenkins
user: root
environment:
JAVA_OPTS: '-Djava.util.logging.config.file=/var/jenkins_home/log.properties -Dhudson.model.DirectoryBrowserSupport.CSP='
TZ : 'Asia/Shanghai'

标签:bin,root,usr,jenkins,docker,local
From: https://www.cnblogs.com/vzhangxk/p/16988213.html

相关文章