forked from cloudfoundry/docs-cf-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_lock_buildpack.html.md.erb
9 lines (5 loc) · 1.05 KB
/
_lock_buildpack.html.md.erb
1
2
3
4
5
6
7
8
9
Every new version of Cloud Foundry includes an updated buildpack. By default, your deployment applies the most recent buildpack when you upgrade. In some cases, however, you may want to preserve an existing buildpack, rather than upgrade to the latest version. For example, if an app you deploy depends on a specific component in Buildpack A that is not available in Buildpack B, you may want to continue using Buildpack A.
The <code>--lock</code> flag lets you continue to use your existing buildpack even after you upgrade. Locked buildpacks are not updated when <%=vars.product_name%> updates. You must manually unlock them to update them.
If you elect to use the <code>--unlock</code> flag, your deployment will apply the most recent buildpack when you upgrade <%=vars.product_name%>.
<code>cf update-buildpack BUILDPACK [-p PATH] [-i POSITION] [--enable|--disable] [--lock|--unlock]</code>
This feature is also available via API. For more information, see [the API documentation](https://apidocs.cloudfoundry.org/246/buildpacks/lock_or_unlock_a_buildpack.html).