containerrc: Add json-schmea for config file
Add a json-schema generated by www.liquid-technologies.com/online-json-to-schema-converter modified to remove hard-coded values from the example conifg (like MySecret1). Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
13ab593a59
commit
64b797d18d
1 changed files with 166 additions and 0 deletions
166
containerrc.json
Normal file
166
containerrc.json
Normal file
|
@ -0,0 +1,166 @@
|
||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"registry": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"tag": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"registry",
|
||||||
|
"image",
|
||||||
|
"tag"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privileged": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"read_only": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"pull_policy": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"restart": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"mode",
|
||||||
|
"options"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dns": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"search": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"search",
|
||||||
|
"servers"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"tcp": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"udp": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"tcp",
|
||||||
|
"udp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"FOO": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"MAN_WIDTH": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"FOO",
|
||||||
|
"MAN_WIDTH"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"secrets": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"volumes": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"capabilities": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"add": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"drop": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"add",
|
||||||
|
"drop"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"image",
|
||||||
|
"privileged",
|
||||||
|
"read_only",
|
||||||
|
"replace",
|
||||||
|
"pull_policy",
|
||||||
|
"restart",
|
||||||
|
"network",
|
||||||
|
"dns",
|
||||||
|
"ports",
|
||||||
|
"env",
|
||||||
|
"secrets",
|
||||||
|
"volumes",
|
||||||
|
"capabilities"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue