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
Copy file name to clipboardExpand all lines: content/docs/reference/spec/migration/platform-api-0.11-0.12.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,32 @@ In Platform 0.12 extensions can be used to extend not only build-time base image
59
59
60
60
TODO
61
61
62
-
### OCI layout is a supported export format
62
+
### OCI layout is a supported export format (experimental)
63
63
64
-
TODO
64
+
In Platform 0.12, a new capability to [export application images on disk in OCI layout format](https://github.com/buildpacks/rfcs/blob/main/text/0119-export-to-oci.md) was added.
65
+
66
+
Platform must prepare a [layout directory](https://github.com/buildpacks/rfcs/blob/main/text/0119-export-to-oci.md#how-it-works) containing input images in OCI layout format, and provide the location of the directory to the lifecycle.
67
+
68
+
#### Lifecycle phases affected
69
+
70
+
The lifecycle phases affected by this new behavior are:
**Note**[Rebasing](https://buildpacks.io/docs/concepts/components/lifecycle/rebase/) an image exported to OCI layout format is not supported.
77
+
78
+
#### Before executing the lifecycle
79
+
80
+
Input images required by any phase, like the `run-image` or `previous-image`, must be saved on disk in OCI layout format in the layout directory following the
81
+
[rules](https://github.com/buildpacks/spec/blob/platform/v0.12/platform.md#map-an-image-reference-to-a-path-in-the-layout-directory) to convert the reference to a path.
82
+
83
+
#### During lifecycle execution
84
+
85
+
For the phases affected, the feature is enabled by providing a new `-layout` flag or by setting the `CNB_USE_LAYOUT` environment variable to `true`.
86
+
* If the feature is enabled:
87
+
* A path to a directory where the images are located and saved must be specified, either by providing a `-layout-dir` flag or by setting the `CNB_LAYOUT_DIR` environment variable.
0 commit comments