The micro instance enables you to do local development in .NET on the Micro Cloud Foundry instance. The Iron Foundry team has worked very hard to make this an easy transition without much hassle. You are four steps away from running your own cloud locally with .NET support:
Step 1: Get all the bits needed to setup
Step 2: Get your Cloud Foundry Micro Cloud Working
It is very easy to get your Cloud Foundry Micro Cloud running. Here are the simple steps taken:
- Unzip the virtual machine and start it up in VMware Workstation, Player, or Fusion.
- After it starts up select option 1 to configure.
- Set your password (make sure to remember it!)
- Set DHCP or Static for network (we chose DHCP)
- HTTP Proxy: (Choose none by hitting enter)
- Enter in your configuration token (if you dont know it generate it here)
- After it is done updating your DNS it will Reinitialize the monit daemon and get everything installed. (can take up to 5 minutes)
Next thing to do is register a user within your Micro Cloud (Required). Here is how to do this:
If you are still having trouble getting this part working please refer to the Getting Started guide from the Cloud Foundry team.
Step 3: Get your Iron Foundry Micro Cloud Working
Now that you have the Cloud Foundry Micro Cloud installed and up and running you can easily extend it to support .NET with the Iron Foundry Micro Cloud. The Iron Foundry Micro Cloud is a Windows Server 2008 R2 Standard Edition Server and has no software keys initialized which means you will need to provide your own license key to keep it running after the Windows trial period.
Here are the steps to get started:
- Use 7-zip to unzip the Iron Foundry Micro Cloud VM and start it up in VMware Workstation, Player, or Fusion.
- If VMWare asks if you have moved or copied the VM, choose “I copied it”.
- It will show “Setup is starting services” as this is a Windows VM. After it goes through the inital setup it will continue and require your input
- Set the timezone. Click Next
- Accept the licensing terms. Click Next
- It will now say that the users password must be changed before logging on the first time. Click OK and set the password (make sure to remember the password!)
- After setting the password you will now be logged into the desktop. You can now enable Iron Foundry on your Cloud Foundry Micro Cloud. (Make sure your Cloud Foundry Micro Cloud is running at the same time)
- Browse to C:IronFoundrySetup
- Double Click RunSetup.cmd from there follow the instructions to configure Iron Foundry with Cloud Foundry.
- Enter Micro CF Identity: This is your Cloud Foundry Micro Instance Url (example: jwray.cloudfoundry.me is the one we are using for this demo)
- Enter Micro CF Password: This is the password you entered when setting up your Micro Cloud in step 1.
- Once it is done installing press any key to exit
Step 4: Push an Application and feel the love
Now that you have been able to setup your Cloud Foundry instance running Iron Foundry you can now push and update your application by doing the following:
- Download and install the VS 2010 extension from here.
- Right click on your project and then go to “Push Cloud Foundry Application…
- Choose “Manage Clouds…” to set up your new Micro Iron Foundry Cloud
- Choose “Add Cloud Connection…”
- Next choose “Add Cloud…” then “Add” and enter information similar to that shown here
- Back on the “Add Cloud” screen, enter your credentials and validate the connection
- When your account validates, close the “Add Cloud” and Explorer windows to return to the push dialog.
- From the Push Cloud Foundry Application select the correct settings (you can see what we did below)
- Cloud: Select the cloud you entered above.
- Name: Enter in any name you want for the application.
- URL: enter in the full url of the application. Here we will use helloworld.jwray.cloudfoundry.me
- Memory Limit: Select the amount of memory you want your application to use.
- Instances: Select the number of instances you want your application running on.
- Select the services you want to bind to your application such as a database.
Click the “Push” and it will package it up and push it live doing all the configuration of the services and application into Cloud Foundry with Iron Foundry.