Git Product home page Git Product logo

asp.net5-buildpack's Introduction

Cloud Foundry buildpack: ASP.NET 5

A Cloud Foundry buildpack for ASP.NET 5 web applications. Tested with beta8 applications that target .NET Core.

For more information about ASP.NET 5 see:

Usage

cf push my_app -b https://github.com/cloudfoundry-community/asp.net5-buildpack.git

This buildpack will be used if there are one or more project.json files in the pushed application.

Also make sure the application includes a kestrel or a web command and the corresponding Microsoft.AspNet.Server.Kestrel dependency because the buildpack will use Kestrel to run the application.

Use a global.json file to specify the desired DNX version if different than the latest stable beta release. Use a NuGet.Config file to specify non-default package sources.

For a basic example see this Hello World sample.

Disconnected environments

The binaries in manifest.yml can be cached with the buildpack.

Applications can be pushed with their other dependencies after "publishing" the application like dnu publish or dnu publish --runtime ~/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-beta7. Then push from the bin/output director.

Building

  1. Make sure you have fetched submodules
git submodule update --init
  1. Get latest buildpack dependencies
BUNDLE_GEMFILE=cf.Gemfile bundle
  1. 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.

  1. 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 ]
  1. Use in Cloud Foundry

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

    cf create-buildpack custom_aspnet5_buildpack aspnet5_buildpack-cached-custom.zip 1
    cf push my_app -b custom_aspnet5_buildpack

Contributing

Find our guidelines here.

Reporting Issues

Open an issue on this project.

asp.net5-buildpack's People

Contributors

caijj avatar jgawor avatar opiethehokie avatar svennam92 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.