@@ -80,32 +80,39 @@ func configBootstrap(args []string) Configuration {
80
80
HealthURL : "https://ovh.github.io" ,
81
81
Type : "doc" ,
82
82
})
83
+ conf .API .HTTP .Port = 8081
83
84
case sdk .TypeUI :
84
85
conf .UI = & ui.Configuration {}
85
86
conf .UI .Name = "cds-ui-" + namesgenerator .GetRandomNameCDS (0 )
86
87
defaults .SetDefaults (conf .UI )
88
+ conf .UI .HTTP .Port = 8080
87
89
case "migrate" :
88
90
conf .DatabaseMigrate = & migrateservice.Configuration {}
89
91
defaults .SetDefaults (conf .DatabaseMigrate )
90
92
conf .DatabaseMigrate .Name = "cds-migrate-" + namesgenerator .GetRandomNameCDS (0 )
91
93
conf .DatabaseMigrate .ServiceAPI .DB .Schema = "public"
92
94
conf .DatabaseMigrate .ServiceCDN .DB .Schema = "cdn"
95
+ conf .DatabaseMigrate .HTTP .Port = 8087
93
96
case sdk .TypeHatchery + ":local" :
94
97
conf .Hatchery .Local = & local.HatcheryConfiguration {}
95
98
defaults .SetDefaults (conf .Hatchery .Local )
96
99
conf .Hatchery .Local .Name = "cds-hatchery-local-" + namesgenerator .GetRandomNameCDS (0 )
100
+ conf .Hatchery .Local .HTTP .Port = 8086
97
101
case sdk .TypeHatchery + ":kubernetes" :
98
102
conf .Hatchery .Kubernetes = & kubernetes.HatcheryConfiguration {}
99
103
defaults .SetDefaults (conf .Hatchery .Kubernetes )
100
104
conf .Hatchery .Kubernetes .Name = "cds-hatchery-kubernetes-" + namesgenerator .GetRandomNameCDS (0 )
105
+ conf .Hatchery .Kubernetes .HTTP .Port = 8086
101
106
case sdk .TypeHatchery + ":marathon" :
102
107
conf .Hatchery .Marathon = & marathon.HatcheryConfiguration {}
103
108
defaults .SetDefaults (conf .Hatchery .Marathon )
104
109
conf .Hatchery .Marathon .Name = "cds-hatchery-marathon-" + namesgenerator .GetRandomNameCDS (0 )
110
+ conf .Hatchery .Marathon .HTTP .Port = 8086
105
111
case sdk .TypeHatchery + ":openstack" :
106
112
conf .Hatchery .Openstack = & openstack.HatcheryConfiguration {}
107
113
defaults .SetDefaults (conf .Hatchery .Openstack )
108
114
conf .Hatchery .Openstack .Name = "cds-hatchery-openstack-" + namesgenerator .GetRandomNameCDS (0 )
115
+ conf .Hatchery .Openstack .HTTP .Port = 8086
109
116
case sdk .TypeHatchery + ":swarm" :
110
117
conf .Hatchery .Swarm = & swarm.HatcheryConfiguration {}
111
118
defaults .SetDefaults (conf .Hatchery .Swarm )
@@ -115,14 +122,17 @@ func configBootstrap(args []string) Configuration {
115
122
},
116
123
}
117
124
conf .Hatchery .Swarm .Name = "cds-hatchery-swarm-" + namesgenerator .GetRandomNameCDS (0 )
125
+ conf .Hatchery .Swarm .HTTP .Port = 8086
118
126
case sdk .TypeHatchery + ":vsphere" :
119
127
conf .Hatchery .VSphere = & vsphere.HatcheryConfiguration {}
120
128
defaults .SetDefaults (conf .Hatchery .VSphere )
121
129
conf .Hatchery .VSphere .Name = "cds-hatchery-vsphere-" + namesgenerator .GetRandomNameCDS (0 )
130
+ conf .Hatchery .VSphere .HTTP .Port = 8086
122
131
case sdk .TypeHooks :
123
132
conf .Hooks = & hooks.Configuration {}
124
133
defaults .SetDefaults (conf .Hooks )
125
134
conf .Hooks .Name = "cds-hooks-" + namesgenerator .GetRandomNameCDS (0 )
135
+ conf .Hooks .HTTP .Port = 8083
126
136
case sdk .TypeVCS :
127
137
conf .VCS = & vcs.Configuration {}
128
138
defaults .SetDefaults (conf .VCS )
@@ -144,13 +154,16 @@ func configBootstrap(args []string) Configuration {
144
154
"gerrit" : {URL : "http://localhost:8080" , Gerrit : & gerrit },
145
155
}
146
156
conf .VCS .Name = "cds-vcs-" + namesgenerator .GetRandomNameCDS (0 )
157
+ conf .VCS .HTTP .Port = 8084
147
158
case sdk .TypeRepositories :
148
159
conf .Repositories = & repositories.Configuration {}
149
160
defaults .SetDefaults (conf .Repositories )
150
161
conf .Repositories .Name = "cds-repositories-" + namesgenerator .GetRandomNameCDS (0 )
162
+ conf .Repositories .HTTP .Port = 8085
151
163
case sdk .TypeCDN :
152
164
conf .CDN = & cdn.Configuration {}
153
165
defaults .SetDefaults (conf .CDN )
166
+ conf .CDN .HTTP .Port = 8089
154
167
conf .CDN .Database .Schema = "cdn"
155
168
conf .CDN .Units .HashLocatorSalt = sdk .RandomString (8 )
156
169
conf .CDN .Units .Buffers = map [string ]storage.BufferConfiguration {
@@ -193,6 +206,7 @@ func configBootstrap(args []string) Configuration {
193
206
case sdk .TypeElasticsearch :
194
207
conf .ElasticSearch = & elasticsearch.Configuration {}
195
208
defaults .SetDefaults (conf .ElasticSearch )
209
+ conf .ElasticSearch .HTTP .Port = 8088
196
210
default :
197
211
sdk .Exit ("Error service '%s' is unknown" , a )
198
212
}
0 commit comments