How to Deploy a .NET Application on Cloud Foundry v2
Authors: Denis Roschinenko, .NET Developer, and Aleksei Malkov, .NET Solution Architect at Altoros
In June 2013, Cloud Foundry v2 became available to public. While this PaaS platform has out-of-the-box build packs for running Ruby, Java, and Node.js applications, its infrastructure is available for .NET developers via Iron Foundry, an open-source toolkit supported by Tier 3. However, neither Cloud Foundry Explorer nor Visual Studio Extension are available for CF v2 at the moment, so the only way to enable a .NET application on CF v2 is using a command line. This blog post describes how to do that and announces the library that Altoros is working on together with Tier 3 to fix this issue.
Cloud Foundry Explorer and Visual Studio Extension
The .NET toolkit for Cloud Foundry v1 (Iron Foundry) included Cloud Foundry Explorer and Visual Studio Extension. These solutions provided a user-friendly interface for running and managing cloud instances. Cloud Foundry Explorer automated deployment tasks and allowed for setting up and running .NET applications almost with a single click. You could install Cloud Foundry Explorer as a desktop application or use a Visual Studio Extension that would integrate into Visual Studio and enable you to push code directly from your IDE.
Developers were able to choose the number of instances and memory limit, then click “Push,” and the application was running on Cloud Foundry.
Since CF v2 uses a new model to deploy, stage, isolate, and route applications, it will take time to update the GUI clients for CF v2. Even the approximate date of the new release is not announced by the project’s team.
To simplify deployment routines for .NET developers, our engineers are now cooperating with Tier 3 to create the vcap client library. This tool will provide a number of methods for managing .NET apps and will allow for creating any visual client similar to CF Explorer. The library will be released the next week, so at the moment developers still have to use the command line. Below is a how-to guide to assist you in this.
Running .NET applications on Cloud Foundry v2
To push your application to Cloud Foundry v2, a developer should do the following steps:
1) Select a target with “cf target.”
2) Login to target using “cf login.”
3) Deploy an application: run “cf push.”
You also have to know the correct configuration settings and parameters for all of these operations.
That’s it. Follow our blog for updates about the upcoming vcap release.No Comments