This is an experimental Cloudfoundry buildpack for Dancer.
There are three files that comprise a buildpack:
bin/detect
- Determines if this buildpack should be applied to an application.bin/compile
- Builds the runtime to be leveraged by an application.bin/release
- Sets up the environment an startup command for an application.
The "heavy lifting" is done by the bin/compile
script. This particular buildpack is used as the basis of a demo for the Saint Louis Cloud Foundry Meetup. Because of that, there are three copies of the bin/compile
script. This allows us to illustrate a few different ways to approach the preparation of a runtime for Perl developers:
compile.prebuilt
- Illustrates downloading a previously compiled version of Perl to run an application.compile.source
- Illustrates downloading Perl and compiling it from source.compile.system
- Illustrates using the system Perl (if available) or using apt-get to install it.
$ git clone https://github.com/danielkennedy/hello-dancer.git
$ cd hello-dancer/
$ cf push APP_NAME -b https://github.com/danielkennedy/cloudfoundry-buildpack-dancer.git