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 'concourse-on-docker'
18 description 'Concourse on Docker'
20 image = 'concourse/concourse'
21 #port = '8080' # '8443' (for https)
22 #concourse_cn = 'concourse.io.example.com'
25 #'recipe[ssl_cert::server_key_pairs]', # for https
27 'recipe[concourse-ci::docker-compose]',
28 #'recipe[concourse-ci::fly]',
44 'skip_setup' => false,
47 'skip_setup' => false,
51 'with_ssl_cert_cookbook' => false, # or true (for https)
53 #'common_name' => concourse_cn,
57 # Version 1 docker-compose format
61 #"#{port}:8080", # If you sepecify no value, Chef will sets '8080:8080'.
62 #"#{port}:8443", # for https
65 #'CONCOURSE_RESOURCE_CHECKING_INTERVAL' => '1m',
66 # If you sepecify no value, Chef will sets "http://#{node['ipaddress']}:8080".
67 #'CONCOURSE_EXTERNAL_URL' => "http://192.168.1.3:#{port}", # or "https://192.168.1.3:#{port}"
68 #'CONCOURSE_TLS_BIND_PORT' => '8443', # activate HTTPS
69 # These environments will be set by the concourse-ci::docker-compose recipe automatically.
70 #'CONCOURSE_TLS_CERT' => '/root/server.crt',
71 #'CONCOURSE_TLS_KEY' => '/root/server.key',
74 # These volumes will be set by the concourse-ci::docker-compose recipe automatically.
75 #"#{server_cert_path(node['concourse-ci']['ssl_cert']['common_name'])}:/root/server.crt:ro",
76 #"#{server_key_path(node['concourse-ci']['ssl_cert']['common_name'])}:/root/server.key:ro",
79 'concourse-worker' => {