Skip to main content

Layer format

The layer image must be deployed in the following format:

.
└── aos-layer1-v1000-20200525155256
├── layer.json
└── 5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270

layer.json is an OCI descriptor that represents the file system layer.

layer.json example
 {
"mediaType": "application/vnd.aos.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270",
"platform": {
"Architecture": "amd64",
"OS": "Linux",
"OSVersion": "2", // compatible Major version of rootfs
"OSFeatures": ["glib", "nano"] // layer content
},
"annotations": {
"layerId": "aosLayer:1",
"parentLayerId": "baseLayer: 1",
"parentLayerDigest": "sha256:6c3c624b58dbbcd3c0dd82b4c53f04194d1247c6eebdaab7c610cf7d66709b3b"
}
}