Skip to content

Commit

Permalink
Add GPU host requirement properties (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Nov 28, 2022
1 parent 386531d commit c1a8f26
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions schemas/devContainer.base.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,39 @@
"type": "string",
"pattern": "^\\d+([tgmk]b)?$",
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
},
"gpu": {
"oneOf": [
{
"type": [
"boolean",
"string"
],
"enum": [
true,
false,
"optional"
],
"description": "Indicates whether a GPU is required. The string \"optional\" indicates that a GPU is optional. An object value can be used to configure more detailed requirements."
},
{
"type": "object",
"properties": {
"cores": {
"type": "integer",
"minimum": 1,
"description": "Number of required cores."
},
"memory": {
"type": "string",
"pattern": "^\\d+([tgmk]b)?$",
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
}
},
"description": "Indicates whether a GPU is required. The string \"optional\" indicates that a GPU is optional. An object value can be used to configure more detailed requirements.",
"additionalProperties": false
}
]
}
}
}
Expand Down

0 comments on commit c1a8f26

Please sign in to comment.