Skip to content

Commit

Permalink
Merge pull request #204 from natalieparellano/assume-web-default
Browse files Browse the repository at this point in the history
Assume web is the default for older buildpacks
  • Loading branch information
ekcasey authored Mar 18, 2021
2 parents a298cf3 + fd912eb commit 456903b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,11 @@ Usage:
| `51` | Buildpack build error
| `50`, `52-59`| Build-specific lifecycle errors

- The lifecycle SHALL execute all buildpacks in the order defined in `<group>` according process outlined in the [Buildpack Interface Specification](buildpack.md).
- The lifecycle SHALL execute all buildpacks in the order defined in `<group>` according to the process outlined in the [Buildpack Interface Specification](buildpack.md).
- The lifecycle SHALL add all invoked buildpacks to`<layers>/config/metadata.toml`.
- The lifecycle SHALL aggregate all `processes`, `slices` and BOM entries returned by buildpacks in `<layers>/config/metadata.toml`.
- The lifecycle SHALL record the buildpack-provided default process type in `<layers>/config/metadata.toml`.
- The lifecycle SHALL treat `web` processes defined by buildpacks implementing buildpack API < 0.6 as `default = true`.

#### `exporter`
Usage:
Expand Down Expand Up @@ -573,7 +575,11 @@ Usage:
- MUST contain a layer that includes `<layers>/config/metadata.toml`
- **If** `<process-type>` matches a buildpack-provided process:
- MUST have `ENTRYPOINT=/cnb/process/<process-type>`
- **If** `<process-type>` does not match a buildpack-provided process:
- **Else if** `<process-type>` is provided and does not match a buildpack-provided process:
- MUST fail
- **Else if** there is a buildpack-provided default process type in `<layers>/config/metadata.toml`:
- MUST have `ENTRYPOINT=/cnb/process/<buildpack-default-process-type>`
- **Else**:
- MUST have `ENTRYPOINT` set to `/cnb/lifecycle/launcher`
- MUST contain the following `Env` entries
- `CNB_LAYERS_DIR=<layers>`
Expand Down Expand Up @@ -894,6 +900,8 @@ Where:

#### `metadata.toml` (TOML)
```toml
buildpack-default-process-type = "<process type>"

[[buildpacks]]
id = "<buildpack ID>"
version = "<buildpack version>"
Expand Down Expand Up @@ -1086,7 +1094,7 @@ Where:
},
"buildpacks": [
{
"key": "<buldpack-id>",
"key": "<buildpack-id>",
"version": "<buildpack-version>",
"layers": {
"<layer-name>": {
Expand Down

0 comments on commit 456903b

Please sign in to comment.