-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (55 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (55 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '2'
services:
jenkins-master:
image: odavid/my-bloody-jenkins
ports:
- '8080:8080'
- '50000:50000'
volumes:
- '.data/jenkins_home:/var/jenkins_home'
- '.data/jenkins-workspace-home:/jenkins-workspace-home'
- '/var/run/docker.sock:/var/run/docker.sock'
environment:
JAVA_OPTS_MEM: '-Xmx1g'
JENKINS_ENV_ADMIN_USER: admin
JENKINS_ENV_HOST_IP: ${MY_HOST_IP}
JENKINS_ENV_CONFIG_YAML: |
security:
realm: jenkins_database
adminPassword: admin
credentials:
minikube-cert:
type: cert
base64: ${MINIKUBE_CERT}
password: ${MINIKUBE_CERT_PASSWORD}
tools:
installations:
MVN-3.5.0:
type: maven
installers:
- id: '3.5.0'
clouds:
kube-cloud:
type: kubernetes
serverUrl: https://${MINIKUBE_IP}:${MINIKUBE_PORT}
skipTlsVerify: true
credentialsId: minikube-cert
templates:
- name: kubeslave
image: odavid/jenkins-jnlp-slave:latest
labels:
- generic
remoteFs: /home/jenkins
jvmArgs: -Xmx1g
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
seed_jobs:
seed-job:
source:
remote: https://github.com/odavid/my-bloody-jenkins.git
branch: 'master'
triggers:
pollScm: 'H/2 * * * *'
periodic: '@hourly'
pipeline: examples/jobs/seed/Jenkinsfile
executeWhen: always #firstTimeOnly always never