Thank you for your interest in joining Contrast Security.
Your project is to:
- Fork or clone this repository
- Add an after-complile Hook to this buildpack. The hook can do anything you want, print a message, show the current weather, output CPU statistics.
- Write tests to validate your hook.
- Send us a link to your repository
To build this buildpack, you'll need Go installed. I recommend 1.12 or later. The buildpack will not build on 1.10 or earlier.
Once Go is installed, run the following commands from the buildpack's directory:
-
Source the .envrc file in the buildpack directory.
source .envrc
-
Install buildpack-packager
go install github.com/cloudfoundry/libbuildpack/packager/buildpack-packager
-
Build the buildpack
buildpack-packager build -any-stack
To test this buildpack, run the following command from the buildpack's directory:
-
Source the .envrc file in the buildpack directory.
source .envrc
-
Run unit tests
./scripts/unit.sh
This project is a fork of the Cloud Foundry Node buildpack.