forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeship-services.json
331 lines (331 loc) · 9.62 KB
/
codeship-services.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CodeShip Pro services configuration",
"description": "codeship-services.yml is where you configure each service you need to run your CI/CD builds with CodeShip.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/ExternalService"
},
"definitions": {
"ExternalService": {
"title": "CodeShip Pro Service",
"description": "The definition of a service in a CodeShip Pro build, which can have steps run on it or have other services depend on it",
"properties": {
"add_docker": {
"description": "If true, the docker socket will be exposed in this service.",
"default": false,
"type": "boolean"
},
"build": {
"description": "How to build the image for this service. Mutually exclusive with 'image'. Can either be just a path containing a Dockerfile, or a build definition.",
"oneOf": [
{
"$ref": "#/definitions/externalBuild"
},
{
"type": "string"
}
]
},
"cached": {
"description": "Whether the image for this service should be rebuilt from scratch for each run, or if the latest build of the service's image from the configured cache branch (defaulting to 'master') should be used.",
"default": false,
"type": "boolean"
},
"cap_add": {
"items": {
"type": "string"
},
"type": "array"
},
"cap_drop": {
"items": {
"type": "string"
},
"type": "array"
},
"command": {
"description": "The command to run when launching the service, overriding the 'CMD' in the image. Optional.",
"type": "string"
},
"cpuset": {
"type": "string"
},
"cpu_shares": {
"type": "integer"
},
"default_cache_branch": {
"description": "The branch to use for caching. Defaults to 'master'",
"type": "string"
},
"dns": {
"items": {
"type": "string"
},
"type": "array"
},
"dns_search": {
"items": {
"type": "string"
},
"type": "array"
},
"dockercfg_service": {
"description": "The name of another defined service that provides the Docker configuration for building and running this service. Optional.",
"type": "string"
},
"dockerfile": {
"description": "A specific Dockerfile to use, rather than the one in the build context",
"type": "string"
},
"domainname": {
"type": "string"
},
"encrypted_dockercfg_path": {
"description": "The location of a Docker configuration file encrypted by Jet to be used with building and running this service. Optional.",
"type": "string"
},
"encrypted_env_file": {
"description": "The location of one or more files, encrypted with Jet, containing environment variables to be made available to this service and steps running on it. Optional.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
]
},
"encrypted_environment": {
"description": "A list of encrypted key/value pairs to be used in the environment for this service and steps running on it. Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"entrypoint": {
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
]
},
"env_file": {
"description": "The location of one or more files containing environment variables to be made available to this service and steps running on it. Optional.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
]
},
"environment": {
"description": "Either a map of key/value pairs or a list of 'KEY=VALUE' pairs to be used in the environment for this service and steps running on it. Optional.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "object",
"additionalProperties": true
}
]
},
"expose": {
"items": {
"type": "string"
},
"type": "array"
},
"extra_hosts": {
"items": {
"type": "string"
},
"type": "array"
},
"hostname": {
"type": "string"
},
"image": {
"description": "A pre-existing image to use for this service. Mutually exclusive with 'build'",
"type": "string"
},
"links": {
"items": {
"type": "string"
},
"type": "array"
},
"depends_on": {
"description": "A list of other services that this service depends on. Use this instead of 'links'",
"items": {
"type": "string"
},
"type": "array"
},
"mem_limit": {
"type": "string"
},
"privileged": {
"type": "boolean"
},
"ports": {
"description": "A list of ports that should be exposed to other services. The ports should be defined like '9999', as strings",
"items": {
"type": "string"
},
"type": "array"
},
"read_only": {
"type": "boolean"
},
"restart": {
"type": "string"
},
"security_opt": {
"items": {
"type": "string"
},
"type": "array"
},
"user": {
"type": "string"
},
"volumes": {
"description": "A list of origin/destination pairs of directories or files relative to the build context and where they should be mounted in the service. Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"volumes_from": {
"description": "A list of other services which should have their defined volumes mounted into this service as well. Optional.",
"items": {
"type": "string"
},
"type": "array"
},
"working_dir": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"oneOf": [
{
"required": [
"build"
]
},
{
"required": [
"image"
]
}
]
},
"externalBuild": {
"title": "Image Build",
"description": "Configuration of how to build the image for this service",
"properties": {
"path": {
"description": "DEPRECATED: Use 'context' instead.",
"type": "string"
},
"dockerfile_path": {
"description": "DEPRECATED: Use 'dockerfile' instead",
"type": "string"
},
"image": {
"description": "The output image name for this image. Optional.",
"type": "string"
},
"context": {
"description": "The directory used as the Docker build context. Defaults to the same directory as the codeship-services.yml file",
"type": "string"
},
"dockerfile": {
"description": "A specific Dockerfile to use rather than the 'Dockerfile' present in the build context. Optional.",
"type": "string"
},
"configure": {
"$ref": "#/definitions/externalBuildConfigure"
},
"args": {
"description": "Build args to pass to Docker. Optional.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "object",
"additionalProperties": true
}
]
},
"encrypted_args_file": {
"description": "One or more files, encrypted with Jet, to have their contents decrypted and passed to Docker as build args. Optional.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
]
},
"encrypted_args": {
"description": "A list of encrypted key/value pairs to be used as build args to Docker. Optional.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
]
}
},
"additionalProperties": false,
"type": "object"
},
"externalBuildConfigure": {
"properties": {
"service": {
"type": "string"
},
"command": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
}
}
}