moved jenkins to community catalog
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
swarm-clients:
|
||||
image: "rancher/jenkins-swarm:v0.1.0"
|
||||
user: "${user}"
|
||||
labels:
|
||||
io.rancher.scheduler.affinity:host_label_soft: ci=worker
|
||||
io.rancher.container.hostname_override: container_name
|
||||
external_links:
|
||||
- "${jenkins_service}:jenkins-primary"
|
||||
environment:
|
||||
JENKINS_PASS: "${jenkins_pass}"
|
||||
JENKINS_USER: "${jenkins_user}"
|
||||
SWARM_EXECUTORS: "${swarm_executors}"
|
||||
volumes:
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
- '/usr/bin/docker:/usr/bin/docker'
|
||||
@@ -0,0 +1,39 @@
|
||||
.catalog:
|
||||
name: Jenkins Swarm
|
||||
version: "2.0-rancher1"
|
||||
description: |
|
||||
Containers that run the slave plugin.
|
||||
questions:
|
||||
- variable: user
|
||||
label: "User to run swarm process"
|
||||
description: |
|
||||
If using the Host Docker, this needs to be root.
|
||||
default: jenkins
|
||||
required: true
|
||||
type: enum
|
||||
options:
|
||||
- jenkins
|
||||
- root
|
||||
- variable: jenkins_user
|
||||
label: "Jenkins username"
|
||||
type: "string"
|
||||
required: false
|
||||
description: |
|
||||
Username to authenticate to a secured Jenkins host with.
|
||||
- variable: jenkins_pass
|
||||
label: "Jenkins password"
|
||||
type: "string"
|
||||
required: false
|
||||
description: |
|
||||
Password to authenticate to a secured Jenkins host with.
|
||||
- variable: swarm_executors
|
||||
required: false
|
||||
type: "string"
|
||||
description: |
|
||||
Number of executors on the swarm. Default is #cpus
|
||||
- variable: jenkins_service
|
||||
label: "Jenkins Server"
|
||||
type: "service"
|
||||
required: true
|
||||
description: |
|
||||
Service that is running Jenkins CI server
|
||||
Reference in New Issue
Block a user