Today we’re releasing a new update for the Iron Foundry Micro Instance. The biggest changes are two fold. One is our full support of the Stackato from ActiveState powered micro instance. We’ve taken the great work that the ActiveState Team has done with Cloud Foundry and rolled that into our Iron Foundry enabled Micro Instance! The second big addition is full support for the Cloud Foundry Micro Cloud Foundry 1.2 release.
For those of you that have dived heavily into the overall framework, some of the specifics include changes that enhance the reliability of the controller and self-healing nature of the system.
How to get it up and running? Easy…
First download and get the Stackato Micro Cloud Running.
- Download the Stackato Micro Cloud here: http://www.activestate.com/stackato/download_vm
- Unzip the image to the location you want the image to execute from.
- Set the network on the staccato image to bridged.
- Startup the Stackato Image.
- When it boots up get the IP and Hostname Address. Note both the host name and IP address.
- The Hostname will need to be added to your hosts file, either /etc/hosts in OS-X or Linux and c:WindowsSystem32Drivershosts. Add the IP & host to the file like ‘192.168.NNN.YYYY stackato-XXXX.local’ and ’api.stackato-XXXX.local testwebapp.stackato-XXXX.local‘ (add additional entries at the end for other web apps you intend to push)
- Navigate to http://stackato-XXXX.local and it will redirect to the initial setup page where you enter an email address and password. These credentials are added to the Stackato Instance, so be sure to remember them.
Next step get the Micro Iron Foundry VM Running & Communicating w/ The Stackato Micro Cloud.
- Download the Micro Iron Foundry VM here: http://www.ironfoundry.org/download (Use 7-zip to unzip, or on the Mac use a tool like the “Unarchiver”(http://wakaba.c3.cx/s/apps/unarchiver.html or get it from the App Store)).
- 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 core terminal prompt. 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)
- Boot up the Micro Iron Foundry instance. It will prompt you for a password for the Administrator user.
- At the command prompt (C:UsersAdministrator) execute these commands:
- C:UsersAdministrator>cd C:IronFoundrySetup
- At the prompt enter your domain stackato-XXXX.local, IP address and password.
- It will then connect via ssh, patch the system, restart the cloud controller, and setup the local SQL provisioning services in the Iron Foundry VM.
Once the setup process is done you can use Cloud Foundry Explorer (http://www.ironfoundry.org/download) to push an ASP.NET application. I’ve attached a sample ASP.NET application. Click the gear icon to add a cloud, click the green + button to add a New Server. Rename server to something and add an api url of api.stackato-XXXX.local, email and password. Clicking ”Validate Account” should succeed. Once the cloud is added, you can use push and choose that cloud to publish to it. You should use “testwebapp” as the name since you added it to the hosts file above. Once pushed, you can visit http://testwebapp.stackato-XXXX.local to browse to your application, and http://testwebapp.stackato-XXXX.local/env to see more detailed info.
To get involved with Iron Foundry check out the project at http://www.ironfoundry.org and Cloud Foundry at http://www.cloudfoundry.org/. With the code available on github at https://github.com/IronFoundry or https://github.com/cloudfoundry.