1 | {
|
2 | "title" : "Common Container Configuration Format",
|
3 | "type" : "object",
|
4 | "properties" : {
|
5 | "id" : {
|
6 | "type" : "string",
|
7 | "pattern" : "^/?[a-zA-Z0-9_-]+$"
|
8 | },
|
9 | "image" : {
|
10 | "type" : "string"
|
11 | },
|
12 | "cmd" : {
|
13 | "type" : "string"
|
14 | },
|
15 | "ports" : {
|
16 | "type" : "array",
|
17 | "items" : {
|
18 | "type" : "string",
|
19 | "pattern" : "^\\d+:\\d+$"
|
20 | }
|
21 | },
|
22 | "env" : {
|
23 | "type" : "array",
|
24 | "items" : {
|
25 | "type" : "string",
|
26 | "pattern" : "^\\w+=\\w+$"
|
27 | }
|
28 | },
|
29 | "volumes" : {
|
30 | "type" : "array",
|
31 | "items" : {
|
32 | "type" : "string",
|
33 | "pattern" : "[^\\0]+:(/[^/]+)+$"
|
34 | }
|
35 | },
|
36 | "expose" : {
|
37 | "type" : "array",
|
38 | "items" : {
|
39 | "type" : "string",
|
40 | "pattern" : "^\\d+$"
|
41 | }
|
42 | }
|
43 | },
|
44 | "required" : ["id", "image"]
|
45 | } |
\ | No newline at end of file |