Skip to content

Commit fbba7d9

Browse files
authored
Merge pull request #331 from sethboyles/patch-1
Add documentation for System CNBs
2 parents a34ecff + 9af977c commit fbba7d9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

cnb/index.html.md.erb

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ owner: Buildpacks
66
Cloud Native Buildpacks (CNBs) usually take your application source code and transform it into a container. If you are familiar with their concepts, there are some differences:
77

88
- During build, instead of a container image, a droplet is produced. However, this should go unnoticed by the end user.
9-
- CNBs are not yet available as system buildpacks. Users always need to provide the list of buildpacks.
109
- Using the new `lifecycle` property is currently only possible using a manifest.
1110
- Build- and run environment/image will be provided by the Cloud Foundry stack available on your platform (probably [cflinuxfs4](https://github.com/cloudfoundry/cflinuxfs4)).
1211
- Using stacks provided by Paketo is not possible at the moment.
@@ -32,6 +31,22 @@ applications:
3231

3332
Using the `lifecycle` property, the desired Buildpack variant can be selected. See the [reference section](../../devguide/deploy-apps/manifest-attributes.html#lifecycle) for more details. In this example, the [nodejs CNB](https://github.com/paketo-buildpacks/nodejs) container image is selected.
3433

34+
### <a id='cnb-example-system-buildpack'></a> System Cloud Native Buildpacks
35+
36+
If system Cloud Native Buildpacks are installed and a buildpack for your app is not specified, Cloud Foundry will attempt to detect a suitable buildpack, similar to Classic Buildpacks. Otherwise, the particular CNBs you want to use can be specified by name:
37+
38+
```yaml
39+
---
40+
applications:
41+
- name: cf-nodejs
42+
lifecycle: cnb
43+
buildpacks:
44+
- node_buildpack
45+
memory: 512M
46+
instances: 1
47+
random-route: true
48+
```
49+
3550
### <a id='cnb-example-credentials'></a> Private Cloud Native Buildpacks
3651

3752
<p class="note">

0 commit comments

Comments
 (0)