perf: Jenkins 特权模式可选项 (#245)

* perf: Jenkins 特权模式可选项

* perf: docker in docker 模式
This commit is contained in:
吴小白 2023-08-01 17:08:58 +08:00 committed by GitHub
parent 5cd4710004
commit 4a70b84230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,24 @@
additionalProperties:
formFields:
- default: "true"
disabled: true
envKey: PRIVILEGED
labelEn: Privileged
labelZh: 特权模式
required: true
type: select
values:
- label: 开启
value: "true"
- label: 关闭
value: "false"
- default: /usr/bin/docker
edit: true
envKey: DOCKER_BINARY
labelEn: Docker Binary
labelZh: Docker二进制文件
required: true
type: text
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Port

View File

@ -4,14 +4,14 @@ services:
container_name: ${CONTAINER_NAME}
image: jenkins/jenkins:2.416
restart: always
privileged: true
privileged: ${PRIVILEGED}
user: root
ports:
- ${PANEL_APP_PORT_HTTP}:8080
volumes:
- ./jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker
- ${DOCKER_BINARY}:${DOCKER_BINARY}
networks:
- 1panel-network
labels: