From 664e7a0eb3998b8a3c22aa66599f3b86d8636d8e Mon Sep 17 00:00:00 2001 From: Pavel Busko Date: Wed, 3 Jul 2024 12:24:59 +0200 Subject: [PATCH 1/3] Add -run flag to the restorer binary Signed-off-by: Pavel Busko --- platform.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform.md b/platform.md index 2f3d312..5a577ff 100644 --- a/platform.md +++ b/platform.md @@ -479,7 +479,8 @@ Usage: [-layers ] \ [-log-level ] \ [-skip-layers ] \ - [-uid ] + [-uid ] \ + [-run ] ``` ##### Inputs @@ -499,11 +500,13 @@ Usage: | `` | `CNB_LOG_LEVEL` | `info` | Log Level | | `` | `CNB_SKIP_LAYERS` | `false` | Do not perform [layer restoration](#layer-restoration) | | `` | `CNB_USER_ID` | | UID of the build image `User` | - +| ``** | `CNB_RUN_PATH` | `/cnb/run.toml` | Path to run file (see [`run.toml`](#runtoml-toml)) | > ^ Only needed when using image extensions > \* Only needed when using image extensions to extend the build image +> \** Only needed when using image extensions to extend the run image + ##### Outputs | Output | Description | From 7f44395c97d602d53e4bf87d6650c0380aac28a7 Mon Sep 17 00:00:00 2001 From: Pavel Busko Date: Thu, 4 Jul 2024 12:29:55 +0200 Subject: [PATCH 2/3] clarify run image resolution during restore phase Signed-off-by: Pavel Busko --- platform.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.md b/platform.md index 5a577ff..dbb68d3 100644 --- a/platform.md +++ b/platform.md @@ -536,7 +536,7 @@ Usage: - MUST record the digest reference to the provided `` in `` - MUST copy the OCI manifest and config file for `` to `/cache` - The lifecycle: - - MUST resolve `run-image.reference` to a digest reference in `` if not present + - MUST [resolve mirrors](#run-image-resolution) for the `run-image.reference` in `` and resolve it to a digest reference - MUST populate `run-image.target` data in `` if not present - **If** `` has `run-image.extend = true`, the lifecycle: - MUST download from the registry and save in OCI layout format the `run-image` in `` to `/cache` From f8b60dc65c9a6878fa6e41054ac3f9a8358dcaec Mon Sep 17 00:00:00 2001 From: Natalie Arellano Date: Tue, 9 Jul 2024 12:36:55 -0400 Subject: [PATCH 3/3] Update version Signed-off-by: Natalie Arellano --- README.md | 2 +- platform.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0fba8d2..eab4e47 100644 --- a/README.md +++ b/README.md @@ -52,4 +52,4 @@ These documents currently specify: - Buildpack API: `0.10` - Distribution API: `0.3` -- Platform API: `0.12` +- Platform API: `0.14` diff --git a/platform.md b/platform.md index dbb68d3..9bd174f 100644 --- a/platform.md +++ b/platform.md @@ -98,7 +98,7 @@ Examples of a platform might include: ## Platform API Version -This document specifies Platform API version `0.12`. +This document specifies Platform API version `0.14`. Platform API versions: - MUST be in form `.` or ``, where `` is equivalent to `.0`