This section describes how a single component version is stored in a file format.
This is a special kind of OCM repository storage format capable to host exactly one component version. It is intended to be used during a build process to compose a component version before it is transported into a regular OCM repository.
To describe a repository context for an OCM repository conforming to this specification the following repository specification format MUST be used.
type: ComponentArchive/v1
The content of a single OCM Component Version will be stored as Filesystem content. This is a special version of an OCM Repository, which can be used to compose a component version during the build time of a component.
An OCM repository view will be mapped to a filesystem-based representation according to the Component Archive Format specification.
The type specific specification fields are:
-
filePath
stringPath in filesystem used to host the repository.
-
fileFormat
(optional) stringThe format to use to store content:
directory
: stored as directory structuretar
: stored as directory structure in a tar filetgz
: stored as directory structure in a tar file compressed by GNU Zip
The component-descriptor is stored as top-level file and local blobs in the blobs
folder.
This format supports no dedicated blob mappings. Local blobs are always stored as blobs.
component-archive
├── component-descriptor.yaml
└── blobs
├── sha.456... (local blob)
└── sha.567... (local blob)