Cloud Foundry: Understanding the Core Components
Explore the key components you'll need to build an entire Cloud Foundry architecture.In a recent post, I spoke about some of Cloud Foundry's main...Learn More
Unlike most other Cloud Computing platform services, which are tied to particular cloud providers, Cloud Foundry is available as a stand-alone software package. You can, of course, deploy it on Amazon’s AWS, but you can also host it yourself on your own OpenStack server, or through HP’s Helion or VMware’s vSphere.
First of all though, to be completely clear, just what is a Cloud Computing platform? There are, broadly speaking, three major categories of Cloud Computing:
Since it’s easy to become a bit confused when thinking about cloud platforms, it’s important to be able to visualize exactly which elements of the compute ecosystem are whose responsibilities. While there is no precise definition, it’s reasonable to say that a platform requires only that you take care of your applications.
With that in mind, the platform layer should be able to provide:
Cloud Foundry is an open source cloud computing platform originally developed in-house at VMware. It is now owned by Pivotal Software, which is a joint venture made up of VMware, EMC, and General Electric.
Cloud Foundry is optimized to deliver…
Not only can Cloud Foundry lighten developer workloads but, since Cloud Foundry handles so much of an application’s resource management, it can also greatly reduce the overhead burden on your operations team.
Cloud Foundry’s architectural structure includes components and a high-enough level of interoperability to permit…
Read more on Cloud Foundry Components here.
Although Cloud Foundry supports many languages and frameworks, including Java, js, Go, PHP, Python, and Ruby, not all applications will make a good fit. As with all modern software applications, your project should attempt to follow the Twelve-Factor App standards.
Before deciding whether Cloud Foundry is for you, you’ll have to try actually deploying a real application. As I already mentioned, to set up a suitable environment, you will need an infrastructure layer. As of now, Cloud Foundry supports AWS, VMware and Open Stack. Setting Cloud Foundry on top of VMware might not be the best choice for us since we’d probably prefer to avoid the extra complexity. Instead, we’ll work with Pivotal web services (PWS).
PWS provides “Cloud Foundry as a web service,” deployed on top of AWS. You’ll just need to create an account and you’ll automatically get a sixty day free trial. Getting started isn’t a big deal at all.
Once you’ve created your account and set up the command line interface tool, you’ll be ready to deploy your application. We’re going to use some static files, which means we’ll need one folder and a few html files. Make sure there’s an index.html file among them.
Normally, deploying static files requires a webserver like Apache or Nginx. But we’re not going to have to worry about that: the platform will automatically take care of any Internet-facing configuration we’ll need. You only need to push your application files to the Cloud Foundry environment and everything else will be taken care of.
Now, copy the folder with your files to the machine where you’ve installed the CLI and log in to the CLI using this API endpoint:
cf login -a https://api.run.pivotal.io
You may need to provide some information
Once successfully logged in you will be able to run Cloud Foundry commands using cf. Start with cf help to check all available commands.
Now go to your application folder and create a file called Staticfile using…
Push the application using…
cf push <<application file name>>
You will want to verify that the app is running by using the URL generated from the output of the previous step. There’s more information on hosting a sample static file in Cloud Foundry.