Skip to content

Commit

Permalink
Update compose-spec.json
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
robmry authored and github-actions[bot] committed Dec 18, 2024
1 parent bd68b92 commit 7a45dc7
Showing 1 changed file with 46 additions and 5 deletions.
51 changes: 46 additions & 5 deletions schema/compose-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
"domainname": {"type": "string"},
"entrypoint": {"$ref": "#/definitions/command"},
"env_file": {"$ref": "#/definitions/env_file"},
"label_file": {"$ref": "#/definitions/label_file"},
"environment": {"$ref": "#/definitions/list_or_dict"},

"expose": {
Expand Down Expand Up @@ -267,6 +268,7 @@
},
"external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"extra_hosts": {"$ref": "#/definitions/extra_hosts"},
"gpus": {"$ref": "#/definitions/gpus"},
"group_add": {
"type": "array",
"items": {
Expand Down Expand Up @@ -418,6 +420,7 @@
"properties": {
"propagation": {"type": "string"},
"create_host_path": {"type": ["boolean", "string"]},
"recursive": {"type": "string", "enum": ["enabled", "disabled", "writable", "readonly"]},
"selinux": {"type": "string", "enum": ["z", "Z"]}
},
"additionalProperties": false,
Expand Down Expand Up @@ -497,8 +500,9 @@
"properties": {
"ignore": {"type": "array", "items": {"type": "string"}},
"path": {"type": "string"},
"action": {"type": "string", "enum": ["rebuild", "sync", "sync+restart"]},
"target": {"type": "string"}
"action": {"type": "string", "enum": ["rebuild", "sync", "restart", "sync+restart", "sync+exec"]},
"target": {"type": "string"},
"exec": {"$ref": "#/definitions/service_hook"}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
Expand Down Expand Up @@ -651,6 +655,23 @@
}
},

"gpus": {
"id": "#/definitions/gpus",
"type": "array",
"items": {
"type": "object",
"properties": {
"capabilities": {"$ref": "#/definitions/list_of_strings"},
"count": {"type": ["string", "integer"]},
"device_ids": {"$ref": "#/definitions/list_of_strings"},
"driver":{"type": "string"},
"options":{"$ref": "#/definitions/list_or_dict"}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
}
},

"include": {
"id": "#/definitions/include",
"oneOf": [
Expand Down Expand Up @@ -865,6 +886,16 @@
]
},

"label_file": {
"oneOf": [
{"type": "string"},
{
"type": "array",
"items": {"type": "string"}
}
]
},

"string_or_list": {
"oneOf": [
{"type": "string"},
Expand Down Expand Up @@ -899,9 +930,19 @@
"type": "object",
"patternProperties": {
".+": {
"type": ["string", "array"]
},
"uniqueItems": false
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": false
}
]
}
},
"additionalProperties": false
},
Expand Down

0 comments on commit 7a45dc7

Please sign in to comment.