2 # Copyright 2017, whitestar
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 name 'jenkins-on-docker'
18 description 'Jenkins on Docker'
20 #jenkins_cn = 'jenkins.io.example.com'
23 #'recipe[ssl_cert::server_key_pairs]',
25 'recipe[jenkins-grid::docker-compose]',
40 'skip_setup' => false,
43 'skip_setup' => false,
47 #'with_ssl_cert_cookbook' => true,
49 #'common_name' => jenkins_cn,
53 # Version 2 docker-compose format
57 'restart' => 'always',
58 'image' => 'jenkins:latest',
66 #'--httpPort=-1 --httpsPort=8083',
67 # These options will be set by the jenkins-grid::docker-compose recipe automatically.
68 #'--httpsCertificate=/var/lib/jenkins/server.crt',
69 #'--httpsPrivateKey=/var/lib/jenkins/server.key',
72 # These volumes will be set by the jenkins-grid::docker-compose recipe automatically.
74 # "#{node['jenkins-grid']['docker-compose']['jenkins_home']['path']}:/var/jenkins_home",
75 # "#{server_cert_path(node['jenkins-grid']['ssl_cert']['common_name'])}:/var/lib/jenkins/server.crt:ro",
76 # "#{node['jenkins-grid']['docker-compose']['app_dir']}/certs/server.key:/var/lib/jenkins/server.key:ro",