Staging and Runtime Hooks Feature Narrative

Troy Topnik

This feature allows developers more control of the staging and deployment of their application code, without them having to fork existing buildpacks or create their own.

Hooks give developers the ability to optionally:
* run scripts in the staging container before and/or after the bin/compile scripts executed by the buildpack, and
* run scripts in each app container before the app starts (via .profile as per the Heroku buildpack API)

A similar feature has been available and used extensively in Stackato for a few years, and we'd like to contribute this functionality back to Cloud Foundry.

A proof-of-concept of this feature has already been submitted as a pull request, and the Feature Narrative addresses many of the questions raised in the PR discussion:

Please weigh in with comments in the document itself or in this thread.



Join { to automatically receive all group messages.