Skip to content

Lifecycle to create apps using Cloud Native Buildpacks

License

Notifications You must be signed in to change notification settings

cloudfoundry/cnbapplifecycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cnbapplifecycle

Lifecycle that produces Cloud Foundry droplets using Cloud Native Buildpacks.

Builder

Flag(s) Type Description Default
-b, --buildpacks strings buildpacks to use
-d, --droplet string output droplet file /tmp/droplet
-l, --layers string layers dir /home/vcap/layers
-r, --result string result file /tmp/result.json
-w, --workspaceDir string app workspace dir /home/vcap/workspace

Metadata

Example

{
  "lifecycle_metadata": {
    "buildpacks": [
      {
        "key": "paketo-buildpacks/node-engine",
        "name": "paketo-buildpacks/[email protected]",
        "version": "3.2.1"
      },
      {
        "key": "paketo-buildpacks/npm-install",
        "name": "paketo-buildpacks/[email protected]",
        "version": "1.5.0"
      },
      {
        "key": "paketo-buildpacks/node-start",
        "name": "paketo-buildpacks/[email protected]",
        "version": "1.1.5"
      },
      {
        "key": "paketo-buildpacks/npm-start",
        "name": "paketo-buildpacks/[email protected]",
        "version": "1.0.17"
      }
    ]
  },
  "process_types": { "web": "sh /home/vcap/workspace/start.sh" },
  "execution_metadata": "",
  "lifecycle_type": "cnb"
}

Launcher

Reads config/metadata.toml from CNB_LAYERS_DIR (default /home/vcap/layers) and launches the application using the Cloud Native Buildpacks launcher.