blob: 9f3f0c278a31b1a8dbd46d5a1c7391c868d25d4b [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
4 _param:
Jakub Josef0c875c72017-07-26 23:52:51 +02005 jenkins_master_extra_opts: ""
Ivan Berezovskiy707a7262019-05-07 15:08:38 +04006 jenkins_master_executors_num: 0
Dennis Dmitrievad737d92017-09-19 22:45:23 +03007 jenkins_master_max_concurent_requests: 40
Jakub Joseff3c79432017-12-05 14:44:41 +01008 jenkins_home_dir_path: /var/jenkins_home
Filip Pytloun7d6144a2017-04-13 13:36:45 +02009 docker:
10 client:
Ivan Berezovskiy9f4ef9e2019-06-10 13:57:16 +040011 enabled: true
12 images:
13 - ${_param:docker_image_jenkins}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 stack:
15 jenkins:
Filip Pytloun7d6144a2017-04-13 13:36:45 +020016 service:
17 master:
Filip Pytloun69645082017-06-01 17:13:01 +020018 environment:
Jakub Joseff3c79432017-12-05 14:44:41 +010019 JENKINS_HOME: ${_param:jenkins_home_dir_path}
Denis Egorenkoa40a8dc2019-07-11 16:22:59 +040020 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 -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts ${_param:jenkins_master_extra_opts}"
Jakub Josef0c875c72017-07-26 23:52:51 +020021 JENKINS_NUM_EXECUTORS: ${_param:jenkins_master_executors_num}
Dennis Dmitrievad737d92017-09-19 22:45:23 +030022 JENKINS_OPTS: " --handlerCountMax=${_param:jenkins_master_max_concurent_requests}"
Filip Pytloune7d4f862017-08-04 13:11:51 +020023 https_proxy: ${_param:docker_https_proxy}
24 http_proxy: ${_param:docker_http_proxy}
25 no_proxy: ${_param:docker_no_proxy}
Ivan Berezovskiydf8392a2019-07-18 18:20:55 +040026 GIT_SSL_CAINFO: /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem
Filip Pytloun7d6144a2017-04-13 13:36:45 +020027 deploy:
28 restart_policy:
29 condition: any
30 image: ${_param:docker_image_jenkins}
31 ports:
32 - 18081:8080
33 - 50001:50000
34 volumes:
35 - /srv/volumes/jenkins:/var/jenkins_home
36 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Ivan Berezovskiydf8392a2019-07-18 18:20:55 +040037 - /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:/etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:ro