Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

nodejs-buildpack

Cloud Foundry buildpack for Node.js

Subscribe to updates I use nodejs-buildpack


Statistics on nodejs-buildpack

Number of watchers on Github 88
Number of open issues 2
Average time to close an issue 23 days
Main language Shell
Average time to merge a PR 8 days
Open pull requests 5+
Closed pull requests 17+
Last commit over 1 year ago
Repo Created over 6 years ago
Repo Last Updated over 1 year ago
Size 87.4 MB
Homepage http://docs.cloud...
Organization / Authorcloudfoundry
Latest Releasev1.6.20
Contributors48
Page Updated
Do you use nodejs-buildpack? Leave a review!
View open issues (2)
View nodejs-buildpack activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating nodejs-buildpack for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Cloud Foundry Node.js Buildpack

CF Slack Join us on Slack

A Cloud Foundry buildpack for Node based apps.

Buildpack User Documentation

Official buildpack documentation can be found at node buildpack docs.

Building the Buildpack

To build this buildpack, run the following commands from the buildpack's directory:

  1. Source the .envrc file in the buildpack directory.
   source .envrc

To simplify the process in the future, install direnv which will automatically source .envrc when you change directories.

  1. Install buildpack-packager

    (cd src/nodejs/vendor/github.com/cloudfoundry/libbuildpack/packager/buildpack-packager && go install)
    
  2. Build the buildpack

    buildpack-packager build [ --cached=(true|false) ]
    
  3. Use in Cloud Foundry

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

```bash
cf create-buildpack [BUILDPACK_NAME] [BUILDPACK_ZIP_FILE_PATH] 1
cf push my_app [-b BUILDPACK_NAME]
```

Testing

Buildpacks use the Cutlass framework for running integration tests.

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

  1. Source the .envrc file in the buildpack directory.
   source .envrc

To simplify the process in the future, install direnv which will automatically source .envrc when you change directories.

  1. Run unit tests

    ./scripts/unit.sh
    
  2. Run integration tests

Buildpacks use the Cutlass framework for running integration tests against Cloud Foundry. Before running the integration tests, you need to login to your Cloud Foundry using the cf cli:

```bash
cf login -a https://api.your-cf.com -u name@example.com -p pa55woRD
```

Note that your user requires permissions to run cf create-buildpack and cf update-buildpack. To run the integration tests, run the following command from the buildpack's directory:

```bash
./scripts/integration.sh
```

Contributing

Find our guidelines here.

Help and Support

Join the #buildpacks channel in our Slack community.

Reporting Issues

Open an issue on this project.

Active Development

The project backlog is on Pivotal Tracker.

Acknowledgements

Inspired by the Heroku buildpack.

nodejs-buildpack open issues Ask a question     (View All Issues)
  • about 3 years sh: 1: prebuild: not found
nodejs-buildpack open pull requests (View All Pulls)
  • Changes Specific to AppDynamics to Nodejs BP
  • fix issue where NPM cannot be found
  • Add env var to stop rebuilding dependencies when compile
  • Heap autosize
  • Added support for using cached buildpack zip file along with version in integration test
nodejs-buildpack questions on Stackoverflow (View All Questions)
  • Can't use bundler gems inside nodejs buildpack (using buildpack-multi)
nodejs-buildpack list of languages used
nodejs-buildpack latest release notes
v1.6.20 v1.6.20
  • Uncached buildpacks now cache manifest.yml dependencies

    • cache package only deletes its own directories (https://www.pivotaltracker.com/story/show/155405429)
  • Add node 9.8.0, remove node 9.5.0 (https://www.pivotaltracker.com/story/show/155804707) (https://www.pivotaltracker.com/story/show/155618737)

  • Add node 8.10.0, remove node 8.9.3 (https://www.pivotaltracker.com/story/show/155765642)

  • Add node 6.13.1, remove node 6.12.3 (https://www.pivotaltracker.com/story/show/155758175)

  • Add yarn 1.5.1, remove yarn 1.3.2 (https://www.pivotaltracker.com/story/show/155546203) Packaged binaries:

name version cf_stacks
node 4.8.6 cflinuxfs2
node 4.8.7 cflinuxfs2
node 6.13.0 cflinuxfs2
node 6.13.1 cflinuxfs2
node 8.9.4 cflinuxfs2
node 8.10.0 cflinuxfs2
node 9.6.1 cflinuxfs2
node 9.8.0 cflinuxfs2
yarn 1.5.1 cflinuxfs2

Default binary versions:

name version
node 6.x
  • Uncached buildpack SHA256: ea49db66ec122fcc520d7ed8e474b6442bfd270735ebed82a5e9e4ac8307be57
v1.6.19 v1.6.19
  • Add yarn 1.3.2, remove yarn 1.2.1 (https://www.pivotaltracker.com/story/show/155490241)

  • Add Node 9.5.0, remove 9.6.0 We did not release 9.6.0 so keep 9.5.0 (https://www.pivotaltracker.com/story/show/155456835)

  • Add node 9.6.1, remove node 9.5.0 (https://www.pivotaltracker.com/story/show/155456835)

  • Add node 9.6.0, remove node 9.4.0 (https://www.pivotaltracker.com/story/show/155440073) Packaged binaries:

name version cf_stacks
node 4.8.6 cflinuxfs2
node 4.8.7 cflinuxfs2
node 6.12.3 cflinuxfs2
node 6.13.0 cflinuxfs2
node 8.9.3 cflinuxfs2
node 8.9.4 cflinuxfs2
node 9.5.0 cflinuxfs2
node 9.6.1 cflinuxfs2
yarn 1.3.2 cflinuxfs2

Default binary versions:

name version
node 6.x
  • Uncached buildpack SHA256: 1c0da8b2fa86fc8f115c4c669919af2d959226a632babe7ef0999e79c587f093
v1.6.18 v1.6.18
  • Add node 6.13.0, remove node 6.12.2 (https://www.pivotaltracker.com/story/show/155196463)

  • Add support for custom api url and snyk org (https://www.pivotaltracker.com/story/show/155181393) Packaged binaries:

name version cf_stacks
node 4.8.6 cflinuxfs2
node 4.8.7 cflinuxfs2
node 6.12.3 cflinuxfs2
node 6.13.0 cflinuxfs2
node 8.9.3 cflinuxfs2
node 8.9.4 cflinuxfs2
node 9.4.0 cflinuxfs2
node 9.5.0 cflinuxfs2
yarn 1.2.1 cflinuxfs2

Default binary versions:

name version
node 6.x
  • Uncached buildpack SHA256: 43a563872f3f45dcb77569fc54345847f25962de7fc4eaf80a19d3f081ab6143
Other projects in Shell