Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.docker |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | parameters: |
| 4 | _param: |
Jakub Josef | 0c875c7 | 2017-07-26 23:52:51 +0200 | [diff] [blame] | 5 | jenkins_master_extra_opts: "" |
Ivan Berezovskiy | 707a726 | 2019-05-07 15:08:38 +0400 | [diff] [blame] | 6 | jenkins_master_executors_num: 0 |
Dennis Dmitriev | ad737d9 | 2017-09-19 22:45:23 +0300 | [diff] [blame] | 7 | jenkins_master_max_concurent_requests: 40 |
Jakub Josef | f3c7943 | 2017-12-05 14:44:41 +0100 | [diff] [blame] | 8 | jenkins_home_dir_path: /var/jenkins_home |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 9 | docker: |
| 10 | client: |
Ivan Berezovskiy | 9f4ef9e | 2019-06-10 13:57:16 +0400 | [diff] [blame^] | 11 | enabled: true |
| 12 | images: |
| 13 | - ${_param:docker_image_jenkins} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 14 | stack: |
| 15 | jenkins: |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 16 | service: |
| 17 | master: |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 18 | environment: |
Jakub Josef | f3c7943 | 2017-12-05 14:44:41 +0100 | [diff] [blame] | 19 | JENKINS_HOME: ${_param:jenkins_home_dir_path} |
Ivan Berezovskiy | b0e9c1e | 2018-12-24 12:42:38 +0400 | [diff] [blame] | 20 | 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 Josef | 0c875c7 | 2017-07-26 23:52:51 +0200 | [diff] [blame] | 21 | JENKINS_NUM_EXECUTORS: ${_param:jenkins_master_executors_num} |
Dennis Dmitriev | ad737d9 | 2017-09-19 22:45:23 +0300 | [diff] [blame] | 22 | JENKINS_OPTS: " --handlerCountMax=${_param:jenkins_master_max_concurent_requests}" |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 23 | https_proxy: ${_param:docker_https_proxy} |
| 24 | http_proxy: ${_param:docker_http_proxy} |
| 25 | no_proxy: ${_param:docker_no_proxy} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 26 | deploy: |
| 27 | restart_policy: |
| 28 | condition: any |
| 29 | image: ${_param:docker_image_jenkins} |
| 30 | ports: |
| 31 | - 18081:8080 |
| 32 | - 50001:50000 |
| 33 | volumes: |
| 34 | - /srv/volumes/jenkins:/var/jenkins_home |
| 35 | - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro |