Skip to content

Commit

Permalink
add project descriptor example
Browse files Browse the repository at this point in the history
Signed-off-by: Terence Lee <[email protected]>
  • Loading branch information
hone committed Feb 1, 2023
1 parent 2e9e00d commit 6d2a4ff
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions text/0000-execution-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,46 @@ This file be extended by adding `exec-env` to the following tables:
`[[io.buildpacks.post.group.env]]`
`[[io.buildpacks.build.env]]`

An example would look like this:

```TOML
[_]
schema-version = "0.3"

[[io.buildpacks.group]]
id = "buildpacks/ruby"
version = "latest"

[[io.buildpacks.group]]
id = "buildpacks/metrics-agent"
version = "latest"
exec-env = "production"

[[io.buildpacks.group]]
id = "buildpacks/headless-chrome"
version = "latest"
exec-env = "test"

[[io.buildpacks.post.group]]
id = "buildpacks/procfile"
version = "latest"

[[io.buildpacks.buildenv]]
name = "RAILS_ENV"
value = "production"
exec-env = "production"

[[io.buildpacks.build.env]]
name = "RAILS_ENV"
value = "test"
exec-env = "test"

[[io.buildpacks.build.env]]
name = "PARALLEL_WORKERS"
value = "4"
exec-env = "test"
```

### `builder.toml` (Builder Authors)

The only table that `exec-env` will be added to is `[[order.group.env]]`.
Expand Down

0 comments on commit 6d2a4ff

Please sign in to comment.