blob: ab850c076d47d8bb5af4d10c199b5065721c322d [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Ivan Berezovskiy555d42f2019-01-09 14:01:21 +04003- system.docker.client.images.jenkins_master
Filip Pytloun7d6144a2017-04-13 13:36:45 +02004parameters:
5 _param:
Jakub Josef0c875c72017-07-26 23:52:51 +02006 jenkins_master_extra_opts: ""
7 jenkins_master_executors_num: 4
Dennis Dmitrievad737d92017-09-19 22:45:23 +03008 jenkins_master_max_concurent_requests: 40
Jakub Joseff3c79432017-12-05 14:44:41 +01009 jenkins_home_dir_path: /var/jenkins_home
Filip Pytloun7d6144a2017-04-13 13:36:45 +020010 docker:
11 client:
12 stack:
13 jenkins:
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 service:
15 master:
Filip Pytloun69645082017-06-01 17:13:01 +020016 environment:
Jakub Joseff3c79432017-12-05 14:44:41 +010017 JENKINS_HOME: ${_param:jenkins_home_dir_path}
Ivan Berezovskiyb0e9c1e2018-12-24 12:42:38 +040018 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:+UseCGroupMemoryLimitForHeap -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}"
Jakub Josef0c875c72017-07-26 23:52:51 +020019 JENKINS_NUM_EXECUTORS: ${_param:jenkins_master_executors_num}
Dennis Dmitrievad737d92017-09-19 22:45:23 +030020 JENKINS_OPTS: " --handlerCountMax=${_param:jenkins_master_max_concurent_requests}"
Filip Pytloune7d4f862017-08-04 13:11:51 +020021 https_proxy: ${_param:docker_https_proxy}
22 http_proxy: ${_param:docker_http_proxy}
23 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020024 deploy:
25 restart_policy:
26 condition: any
27 image: ${_param:docker_image_jenkins}
28 ports:
29 - 18081:8080
30 - 50001:50000
31 volumes:
32 - /srv/volumes/jenkins:/var/jenkins_home
33 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Ivan Berezovskiy883d27b2019-02-12 14:10:03 +040034 # This is required only for deployments in swarm
35 jenkins:
36 client:
37 location:
38 url: http://jenkins_master:8080