Skip to content

Commit

Permalink
Added analyzed to detector inputs
Browse files Browse the repository at this point in the history
For mixing validation, detector will need the mixins written by analyzer and the buildpacks on the builder image.

Signed-off-by: Jesse Brown <jabrown85@gmail.com>
  • Loading branch information
jabrown85 committed Apr 26, 2021
1 parent 05aa33a commit a3be6e5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ All lifecycle phases:
- MUST give command line inputs precedence over other inputs

#### `analyzer`
The platform MUST execute `analyzer` in the **build environment**

Usage:
```
Expand Down Expand Up @@ -352,6 +351,7 @@ Usage:
```
/cnb/lifecycle/detector \
[-app <app>] \
[-analyzed <analyzed>] \
[-buildpacks <buildpacks>] \
[-group <group>] \
[-layers <layers>] \
Expand All @@ -364,14 +364,15 @@ Usage:
##### Inputs
| Input | Environment Variable | Default Value | Description
|---------------|-------------------------|---------------------------|----------------------
| `<app>` | `CNB_APP_DIR` | `/workspace` | Path to application directory
| `<buildpacks>` | `CNB_BUILDPACKS_DIR` | `/cnb/buildpacks` | Path to buildpacks directory (see [Buildpacks Directory Layout](#buildpacks-directory-layout))
| `<group>` | `CNB_GROUP_PATH` | `<layers>/group.toml` | Path to output group definition
| `<layers>` | `CNB_LAYERS_DIR` | `/layers` | Path to layers directory
| `<log-level>` | `CNB_LOG_LEVEL` | `info` | Log Level
| `<order>` | `CNB_ORDER_PATH` | `/cnb/order.toml` | Path to order definition (see [`order.toml`](#ordertoml-toml))
| `<plan>` | `CNB_PLAN_PATH` | `<layers>/plan.toml` | Path to output resolved build plan
| `<platform>` | `CNB_PLATFORM_DIR` | `/platform` | Path to platform directory
| `<app>` | `CNB_APP_DIR` | `/workspace` | Path to application directory
| `<analyzed>` | `CNB_ANALYZED_PATH` | `<layers>/analyzed.toml` | Path to analysis metadata (see [`analyzed.toml`](#analyzedtoml-toml)
| `<buildpacks>` | `CNB_BUILDPACKS_DIR` | `/cnb/buildpacks` | Path to buildpacks directory (see [Buildpacks Directory Layout](#buildpacks-directory-layout))
| `<group>` | `CNB_GROUP_PATH` | `<layers>/group.toml` | Path to output group definition
| `<layers>` | `CNB_LAYERS_DIR` | `/layers` | Path to layers directory
| `<log-level>` | `CNB_LOG_LEVEL` | `info` | Log Level
| `<order>` | `CNB_ORDER_PATH` | `/cnb/order.toml` | Path to order definition (see [`order.toml`](#ordertoml-toml))
| `<plan>` | `CNB_PLAN_PATH` | `<layers>/plan.toml` | Path to output resolved build plan
| `<platform>` | `CNB_PLATFORM_DIR` | `/platform` | Path to platform directory

##### Outputs
| Output | Description
Expand All @@ -395,6 +396,7 @@ Usage:
The lifecycle:
- SHALL detect a single group from `<order>` and write it to `<group>` using the [detection process](buildpack.md#phase-1-detection) outlined in the Buildpack Interface Specification
- SHALL write the resolved build plan from the detected group to `<plan>`
- SHALL compare the list of mixins that are statically required by all buildpacks with the static list of mixins provided in `<analyzed>` and fail if required mixins are not met.

#### `restorer`
Usage:
Expand Down

0 comments on commit a3be6e5

Please sign in to comment.