1 name 'devops-suite-on-docker'
2 description 'DevOps Suite on Docker'
4 aptly_port = '7080' # default: 8080
5 aptly_api_port = '7081' # default: 8081
6 concourse_port = '8080'
7 gitlab_http_port = '80' # default: 80, and 8080 already in use.
8 gitlab_ssh_port = '2022'
10 nexus_port = nexus_ver == '3' ? '8081' : '8071'
14 'role[aptly-on-docker]',
15 'role[concourse-on-docker]',
16 'role[gitlab-on-docker]',
17 'role[gitlab-runner]',
18 "role[nexus#{nexus_ver}-on-docker]",
28 'skip_setup' => false,
29 'daemon_extra_options' => [
31 '--bip=192.168.100.1/24 --fixed-cidr=192.168.100.0/24',
35 'skip_setup' => false,
46 "#{aptly_api_port}:8081",
48 # 'network_mode' => 'bridge',
54 # 'network_mode' => 'bridge',
64 # Version 1 docker-compose format
69 "#{concourse_port}:8080",
72 # If you sepecify no value, Chef will sets "http://#{node['ipaddress']}:8080".
73 #'CONCOURSE_EXTERNAL_URL' => "http://#{node['ipaddress']}:#{concourse_port}",
76 'concourse-worker' => {
85 #'external_url' => "http://#{gitlab_cn}:#{gitlab_http_port}",
87 #'time_zone' => 'Asia/Tokyo',
88 'gitlab_shell_ssh_port' => gitlab_ssh_port.to_i,
95 #'hostname' => gitlab_cn,
97 "#{gitlab_http_port}:#{gitlab_http_port}",
98 "#{gitlab_ssh_port}:22",
100 'network_mode' => 'bridge', # for the Container Registry feature.
105 'runner-docker-compose' => {
106 'import_ca' => false,
110 'docker-compose' => {
115 "#{nexus_port}:8081",
117 # 'network_mode' => 'bridge',
123 #'image' => 'sonatype/nexus3', # => role[nexus2/3-on-docker]
124 # 'network_mode' => 'bridge',