Add buildpacks documentation

This commit is contained in:
Nieraj Singh
2018-12-10 13:44:56 -08:00
parent 89229ad723
commit faf016df94
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<p class="note"><strong>Custom buildpacks</strong>:If your app requires a custom buildpack, you can use the <code>buildpacks</code> attribute to specify it in a number of ways:</p>
<ul>
<li><p>By name: <code>MY-BUILDPACK</code>.</p></li>
<li><p>By GitHub URL: <code>https://github.com/cloudfoundry/java-buildpack.git</code>.</p></li>
<li><p>By GitHub URL with a branch or tag: <code>https://github.com/cloudfoundry/java-buildpack.git#v3.3.0</code> for the <code>v3.3.0</code> tag.</p>
</ul>
<pre><code>
---
...
buildpacks:
- buildpack_URL
</code></pre>
<p class="note"><strong>Multiple buildpacks</strong>:If you are using multiple buildpacks, you can add an additional value to your manifest:</p>
<pre><code>
---
...
buildpacks:
- buildpack_URL
- buildpack_URL
</code></pre>
<p class="note"><strong>Note</strong>: You must specify multiple buildpacks in the correct order: the buildpack will use the app start command given by the final buildpack. See <a href=https://github.com/cloudfoundry/multi-buildpack#usageapp>the multi-buildpack repository</a> for more information.</p></li>
<p class="note"><strong>Note</strong>: The <code>cf buildpacks</code> command lists the buildpacks that you can refer to by name in a manifest or a command line option.</p>
<p>The command line option that overrides this attribute is <code>-b</code>.</p>

View File

@@ -0,0 +1,28 @@
**Custom buildpacks**: If your app requires a custom buildpack, you can use the `buildpacks` attribute to specify it in a number of ways:
* By name: `MY-BUILDPACK`.
* By GitHub URL: `https://github.com/cloudfoundry/java-buildpack.git`.
* By GitHub URL with a branch or tag: `https://github.com/cloudfoundry/java-buildpack.git#v3.3.0` for the `v3.3.0` tag.
```
---
...
buildpacks:
- buildpack_URL
```
**Multiple buildpacks**: If you are using multiple buildpacks, you can add an additional value to your manifest:
```
---
...
buildpacks:
- buildpack_URL
- buildpack_URL
```
**Note**: You must specify multiple buildpacks in the correct order: the buildpack will use the app start command given by the final buildpack. See `https://github.com/cloudfoundry/multi-buildpack#usageapp` for more information.
**Note**: The `cf buildpacks` command lists the buildpacks that you can refer to by name in a manifest or a command line option.
The command line option that overrides this attribute is `-b`.