blob: 5054909c17fe57331cef70a66b9170a73d534619 [file] [log] [blame]
Filip Pytlounee7eb472017-11-30 14:34:56 +01001classes:
2 - system.docker.client.compose
3parameters:
4 _param:
Jakub Josef86b07822018-04-10 14:45:52 +02005 docker_image_jenkins: mirantis/jenkins:2.100
Filip Pytlounee7eb472017-11-30 14:34:56 +01006 jenkins_master_extra_opts: ""
7 jenkins_master_executors_num: 4
8 jenkins_master_max_concurent_requests: 40
Jakub Joseff3c79432017-12-05 14:44:41 +01009 jenkins_home_dir_path: /var/jenkins_home
Filip Pytlounee7eb472017-11-30 14:34:56 +010010 docker:
11 client:
12 compose:
13 jenkins:
14 status: up
15 service:
16 master:
17 environment:
Jakub Joseff3c79432017-12-05 14:44:41 +010018 JENKINS_HOME: ${_param:jenkins_home_dir_path}
19 JAVA_OPTS: " -server -XX:+AlwaysPreTouch -Xloggc:${_param:jenkins_home_dir_path}/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Djenkins.install.runSetupWizard=false -Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1 -Dhudson.footerURL=https://www.mirantis.com ${_param:jenkins_master_extra_opts}"
Filip Pytlounee7eb472017-11-30 14:34:56 +010020 JENKINS_NUM_EXECUTORS: ${_param:jenkins_master_executors_num}
21 JENKINS_OPTS: " --handlerCountMax=${_param:jenkins_master_max_concurent_requests}"
22 https_proxy: ${_param:docker_https_proxy}
23 http_proxy: ${_param:docker_http_proxy}
24 no_proxy: ${_param:docker_no_proxy}
25 image: ${_param:docker_image_jenkins}
26 restart: always
27 ports:
28 - 18081:8080
29 - 50001:50000
30 volumes:
31 - /srv/volumes/jenkins:/var/jenkins_home
32 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Jakub Josef13dc7f62017-12-06 19:21:58 +010033 network:
34 default:
35 ipam:
36 driver: default
37 config:
38 - subnet: 172.29.0.0/24
Filip Pytlounee7eb472017-11-30 14:34:56 +010039 linux:
40 system:
41 directory:
42 /srv/volumes/jenkins:
43 makedirs: true
44 user: 1000
45 group: 1000
46 package:
47 ca-certificates-java:
48 version: latest