You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new capability to the lifecycle (enabled by configuration) to resolve any image reference (input or output) to a disk location in OCI Image Layout format. It means, instead of interacting with a daemon or registry lifecycle will interact against the filesystem to read or write any image reference.
Proposed solution
The lifecycle phases affected by this new behavior are:
At a high level view the proposed solution can be summarized with the following system landscape diagram from the C4 model
Notice that we are relying on the OCI format Specification to expose the data for Platforms
The following new inputs are proposed to be added to these phases
Input
Environment Variable
Default Value
Description
<layout>
CNB_USE_OCI_LAYOUT
false
Enables the capability of resolving image from/to in OCI layout format on disk
<layout-dir>
CNB_OCI_LAYOUT_PATH
/layout-repo
Path to a directory where the images are saved in OCI layout format
Describe alternatives you've considered
This is actually a new feature for the lifecycle, other alternatives were to export to a tarball, but this scenario will be considered in the near future. a new issue was created for that
Additional context
A folder on disk (accessible by the lifecycle) is required to execute the feature, this new folder works as a local registry and the content must be in OCI Image Layout format.
Let's suppose a directory exists and it has the following structure:
Description
According to the export to OCI layout RFC
Add a new capability to the lifecycle (enabled by configuration) to resolve any image reference (input or output) to a disk location in OCI Image Layout format. It means, instead of interacting with a daemon or registry lifecycle will interact against the filesystem to read or write any image reference.
Proposed solution
The lifecycle phases affected by this new behavior are:
At a high level view the proposed solution can be summarized with the following system landscape diagram from the C4 model
Notice that we are relying on the OCI format Specification to expose the data for
Platforms
The following new inputs are proposed to be added to these phases
<layout>
CNB_USE_OCI_LAYOUT
<layout-dir>
CNB_OCI_LAYOUT_PATH
Describe alternatives you've considered
Additional context
A folder on disk (accessible by the lifecycle) is required to execute the feature, this new folder works as a local registry and the content must be in OCI Image Layout format.
Let's suppose a directory exists and it has the following structure:
Let's see a couple of examples
Analyzing run-image
expected analyzed.toml output
Export to OCI using run-image full saved on disk
The output will be written into the repository folder described above and it should looks like this:
As we can see, the application image
my-app-image
contains a full copy of the layers in itsblobs
folder.The text was updated successfully, but these errors were encountered: