A Cloud Foundry buildpack for .NET Core applications.
For more information about ASP.NET Core see:
cf push my_app -b https://github.com/cloudfoundry/dotnet-core-buildpack.git
Official buildpack documentation can be found at http://docs.cloudfoundry.org/buildpacks/dotnet-core/index.html.
These steps only apply to admins who wish to install the buildpack into their Cloud Foundry deployment. They are meant to be run in a Linux shell and assume that git, Ruby, and the bundler gem are already installed.
- Make sure you have fetched submodules
git submodule update --init
- Get latest buildpack dependencies
BUNDLE_GEMFILE=cf.Gemfile bundle
- Build the binary dependencies (optional)
If you need to rebuild these, to change a version for example, see the included Dockerfiles. They contain comments specifying the commands to run. Then update manifest.yml to point to your files.
- Build the buildpack
uncached
means the buildpack's binary dependencies will be downloaded the first time an application is staged, and cached
means they will be packaged in the buildpack ZIP.
BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager [ --uncached | --cached ]
- Use in Cloud Foundry
Upload the buildpack to your Cloud Foundry and optionally specify it by name
cf create-buildpack custom_dotnet-core_buildpack dotnet-core_buildpack-cached-custom.zip 1
cf push my_app -b custom_dotnet-core_buildpack
Having performed the steps from Building:
BUNDLE_GEMFILE=cf.Gemfile bundle exec rake spec
Integration tests are run using Machete.
To run all the tests (unit and integration):
CF_PASSWORD=admin BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-build --host=local.pcfdev.io
Find our guidelines here.
Open an issue on this project.