2 # Copyright 2018, 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 'screwdriver-on-docker-override'
18 description 'Screwdriver on Docker (customized)'
20 # if you set `nil` to its attribute, you can deactivate its override.
21 docker_skip_setup = false
22 docker_ver_on_centos = '17.12.1.ce-1'
23 docker_ver_on_ubuntu = '17.12.1~ce-0'
24 docker_compose_skip_setup = false
25 docker_compose_ver = '1.21.2'
26 network_mode_bridge = false
28 docker_bip = '192.168.100.1/24'
29 docker_fixed_cidr = '192.168.100.0/24'
41 'role[screwdriver-on-docker]',
47 'skip_setup' => docker_skip_setup,
48 #'version' => '', # '' (=latest) or exact version
49 'version_on_centos' => docker_ver_on_centos, # '18.06.0.ce-3', '18.03.1.ce-1', '17.12.1.ce-1'
50 'version_on_ubuntu' => docker_ver_on_ubuntu, # '18.06.0~ce~3-0', '18.03.1~ce-0', '17.12.1~ce-0'
51 #'storage-driver_on_centos' => 'overlay', # defacto: 'devicemapper'
52 #'storage-driver_on_ubuntu' => 'overlay2', # defacto: 'aufs'
53 'daemon_extra_options' => [
55 "--bip=#{docker_bip} --fixed-cidr=#{docker_fixed_cidr}",
59 'skip_setup' => docker_compose_skip_setup,
60 'version' => docker_compose_ver,
67 #'plugin' => 'docker',
70 'launchVersion' => launch_ver,
75 # **REQUIRED**: SCM settings
76 'github.com' => { # id and display name
79 # These 3 secrets should be set by the following `['screwdriver']['api']['scms_vault_items']` attribute.
80 'oauthClientId' => 'YOU-PROBABLY-WANT-SOMETHING-HERE', # The client id used for OAuth with github. GitHub OAuth (https://developer.github.com/v3/oauth/)
81 'oauthClientSecret' => 'AGAIN-SOMETHING-HERE-IS-USEFUL', # The client secret used for OAuth with github
82 'secret' => 'SUPER-SECRET-SIGNING-THING', # Secret to add to GitHub webhooks so that we can validate them
83 #'gheHost' => 'github.screwdriver.cd', # [Optional] GitHub enterprise host
84 'username' => 'sd-buildbot', # [Optional] Username for code checkout
85 'email' => 'dev-null@screwdriver.cd', # [Optional] Email for code checkout
86 'privateRepo' => false, # [Optional] Set to true to support private repo; will need read and write access to public and private repos (https://developer.github.com/v3/oauth/#scopes)
93 'network_mode_bridge' => network_mode_bridge,
97 'image' => "screwdrivercd/screwdriver:#{api_ver}",
102 #'NODE_TLS_REJECT_UNAUTHORIZED' => '0', # for self-signed cetificates
103 # The following variables will be set by the screwdriver::docker-compose recipe automatically.
104 #'ECOSYSTEM_UI' => "http://#{node['fqdn']}:#{ui_port}",
105 #'ECOSYSTEM_STORE' => "http://#{node['fqdn']}:#{store_port}",
107 # examples for development
109 # '/your/home/dev/github.com/your_org/screwdriver:/usr/src/app/node_modules/screwdriver-api:rw',
110 # '/your/home/dev/github.com/your_org/data-schema:/usr/src/app/node_modules/screwdriver-data-schema:rw',
114 'image' => "screwdrivercd/ui:#{ui_ver}",
119 # These variables will be set by the screwdriver::docker-compose recipe automatically.
120 #'ECOSYSTEM_API' => "http://#{node['fqdn']}:#{api_port}",
121 #'ECOSYSTEM_STORE' => "http://#{node['fqdn']}:#{store_port}",
125 'image' => "screwdrivercd/store:#{store_ver}",
130 # This variable will be set by the screwdriver::docker-compose recipe automatically.
131 #'ECOSYSTEM_UI' => "http://#{node['fqdn']}:#{ui_port}",
133 # examples for development
135 # '/your/home/dev/github.com/your_org/store:/usr/src/app/node_modules/screwdriver-store:rw',