Skip to main content

org.osbuild.containers-storage

Inputs for container images from the host storage

This is an input that pairs with the org.osbuild.containers-storage source. It makes the host container storage available to a stage and a container ID for the stage to use.

Unlike all the other input types, this does not refer to static objects in the osbuild sources store but a dynamically mounted container store that depends on the availability of the resource (the specific container) on the host.

Schema 1

{
"definitions": {
"source-options": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "The name to use for the image"
}
}
},
"source-object-ref": {
"type": "object",
"additionalProperties": false,
"minProperties": 1,
"patternProperties": {
".*": {
"$ref": "#/definitions/source-options"
}
}
},
"source-array-ref": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"options": {
"$ref": "#/definitions/source-options"
}
}
}
},
"source-origin": {
"type": "string",
"description": "When the origin of the input is a source",
"enum": [
"org.osbuild.source"
]
}
},
"additionalProperties": false,
"required": [
"type",
"origin",
"references"
],
"properties": {
"type": {
"enum": [
"org.osbuild.containers-storage"
]
},
"origin": {
"description": "The org.osbuild.source origin case",
"$ref": "#/definitions/source-origin"
},
"references": {
"description": "Container image id",
"oneOf": [
{
"$ref": "#/definitions/source-array-ref"
},
{
"$ref": "#/definitions/source-object-ref"
}
]
}
}
}

Schema 2

{}