Skip to content

michaelenglert/nodejs-buildpack

 
 

Repository files navigation

Cloud Foundry Node.js Buildpack

CF Slack

A Cloud Foundry buildpack for Node based apps.

This is based on the [Heroku buildpack] (https://github.com/heroku/heroku-buildpack-nodejs).

Additional documentation can be found at the CloudFoundry.org.

Buildpack User Documentation

Official buildpack documentation can be found at http://docs.cloudfoundry.org/buildpacks/node/index.html).

<<<<<<< HEAD

Using the AppDynamics Agent Framework

The AppDynamics Agent Framework causes an application to be automatically configured to work with a bound AppDynamics Service .

Detection CriterionExistence of a single bound AppDynamics service. The existence of an AppDynamics service defined by the VCAP_SERVICES payload containing a service name with appdynamics as a substring.

User-Provided Service

When binding AppDynamics using a user-provided service, it must have name or tag with appdynamics in it. The credential payload can contain the following entries:

Name Description
account-access-key The account access key to use when authenticating with the controller
account-name (Optional) The account name to use when authenticating with the controller
application-name (Optional) the application's name
host-name The controller host name
node-name (Optional) the application's node name
port The controller port
ssl-enabled (Optional) Whether or not to use an SSL connection to the controller
tier-name (Optional) the application's tier name

Building the Buildpack

=======

Building the Buildpack

upstream/master

  1. Make sure you have fetched submodules
git submodule update --init
  1. Get latest buildpack dependencies
BUNDLE_GEMFILE=cf.Gemfile bundle
  1. Build the buildpack
BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager [ --cached | --uncached ]
  1. Use in Cloud Foundry

Upload the buildpack to your Cloud Foundry and optionally specify it by name

cf create-buildpack custom_node_buildpack node_buildpack-offline-custom.zip 1
cf push my_app -b custom_node_buildpack

Testing

Buildpacks use the Machete framework for running integration tests.

To test a buildpack, run the following command from the buildpack's directory:

BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-build

More options can be found on Machete's GitHub page.

Contributing

Find our guidelines here.

Help and Support

Join the #buildpacks channel in our [Slack community] (http://slack.cloudfoundry.org/)

Reporting Issues

Open an issue on this project

Active Development

The project backlog is on Pivotal Tracker

About

Cloud Foundry buildpack for Node.js with AppDynamics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 45.9%
  • Ruby 33.5%
  • JavaScript 13.8%
  • Python 6.8%