Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document builder property available in project descriptor #761

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@ pack build sample-app \
docker run sample-app
```

### Specify Builder
The builder can also be [specified](https://github.com/buildpacks/spec/blob/main/extensions/project-descriptor.md#iobuildpacksbuilder-optional) in `project.toml`.

```toml
[io.buildpacks]
builder = "cnbs/sample-builder:jammy"
```

```shell script
# then the pack command does not require builder to be set
pack build sample-app \
--path samples/apps/bash-script/
```


### Further Reading
For more about project descriptors, look at the [schema][descriptor-schema], as well as the [specification][spec].

Expand Down
3 changes: 3 additions & 0 deletions content/docs/reference/config/project-descriptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ The schema is as follows:
- **`value`** _(string, optional, default: latest)_\
The assigned version of the environment variable

- **`builder`** _(string, optional)_\
The builder image to use for the build.

- **`include`** _(string list, optional)_\
A list of files to include in the build, while excluding everything else.

Expand Down
Loading