-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1095 from najohnsn/zos
Introduce zos as platform
- Loading branch information
Showing
8 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
_This document is a work in progress._ | ||
|
||
# <a name="ZOSContainerConfiguration" />z/OS Container Configuration | ||
|
||
This document describes the schema for the [z/OS-specific section](config.md#platform-specific-configuration) of the [container configuration](config.md). | ||
|
||
## <a name="configZOSDevices" />Devices | ||
|
||
**`devices`** (array of objects, OPTIONAL) lists devices that MUST be available in the container. | ||
The runtime MAY supply them however it likes. | ||
|
||
Each entry has the following structure: | ||
|
||
* **`type`** *(string, REQUIRED)* - type of device: `c`, `b`, `u` or `p`. | ||
* **`path`** *(string, REQUIRED)* - full path to device inside container. | ||
If a file already exists at `path` that does not match the requested device, the runtime MUST generate an error. | ||
* **`major, minor`** *(int64, REQUIRED unless `type` is `p`)* - major, minor numbers for the device. | ||
* **`fileMode`** *(uint32, OPTIONAL)* - file mode for the device. | ||
|
||
The same `type`, `major` and `minor` SHOULD NOT be used for multiple devices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"zos": { | ||
"description": "z/OS platform-specific configurations", | ||
"type": "object", | ||
"properties": { | ||
"devices": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "defs-zos.json#/definitions/Device" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"definitions": { | ||
"Major": { | ||
"description": "major device number", | ||
"$ref": "defs.json#/definitions/int64" | ||
}, | ||
"Minor": { | ||
"description": "minor device number", | ||
"$ref": "defs.json#/definitions/int64" | ||
}, | ||
"FileMode": { | ||
"description": "File permissions mode (typically an octal value)", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 512 | ||
}, | ||
"FileType": { | ||
"description": "Type of a block or special character device", | ||
"type": "string", | ||
"pattern": "^[cbup]$" | ||
}, | ||
"Device": { | ||
"type": "object", | ||
"required": [ | ||
"type", | ||
"path", | ||
"major", | ||
"minor" | ||
], | ||
"properties": { | ||
"path": { | ||
"$ref": "defs.json#/definitions/FilePath" | ||
}, | ||
"type": { | ||
"$ref": "defs-zos.json#/definitions/FileType" | ||
}, | ||
"major": { | ||
"$ref": "defs-zos.json#/definitions/Major" | ||
}, | ||
"minor": { | ||
"$ref": "defs-zos.json#/definitions/Minor" | ||
}, | ||
"fileMode": { | ||
"$ref": "defs-zos.json#/definitions/FileMode" | ||
}, | ||
"uid": { | ||
"$ref": "defs.json#/definitions/UID" | ||
}, | ||
"gid": { | ||
"$ref": "defs.json#/definitions/GID" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"ociVersion": "1.0.0", | ||
"root": { | ||
"path": "rootfs" | ||
}, | ||
"zos": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters