Pushing an Application with Multiple Buildpacks

Page last updated:

This topic describes how developers can push an application with multiple buildpacks.

For more information about pushing applications to Cloud Foundry, see the Deploy an Application topic.

Specifying Buildpacks with the cf CLI

To push an application with multiple buildpacks using the Cloud Foundry Command Line Interface (cf CLI), perform the following procedure:

  1. Ensure you are using the cf CLI v6.30.0+:
    $ cf version
    cf version 6.30.0+decf883fc.2017-09-01
    
    For more information about upgrading the cf CLI, see the Installing the cf CLI
  2. Push the application with the binary buildpack with the --no-start flag:

    $ cf push YOUR-APP --no-start -b binary_buildpack

  3. See the How to Create an App Using V3 of the CC API topic in the Cloud Controller GitHub repo for instructions on how to use cf curl to update the application to use multiple buildpacks. To see a list of available buildpacks, run cf buildpacks.

If you are using an application manifest, you cannot include the buildpack key or future pushes will not function properly.

For more information about using the cf CLI, see the Cloud Foundry Command Line Interface topic.

Create a pull request or raise an issue on the source for this page in GitHub