Ok, so our app has become popular and too many users are accessing it. We need to scale. If only we had a….wait…a PaaS. Ok so here is what to do.
First we could do this via the GUI, but we are going to use the command line just for fun.
Ok, so our app has become popular and too many users are accessing it. We need to scale. If only we had a….wait…a PaaS. Ok so here is what to do.
First we could do this via the GUI, but we are going to use the command line just for fun.
Now that you have built your app we need to add a database. Use the following command to see what services you can create:
> cf marketplace
You should see something like this.
service plans description
p-hd Standard Pivotal HD is the industry’s most full-featured Hadoop distribution.
p-mysql 100mb-dev MySQL service for application development and testing
Here’s a tutorial on how to get started with Pivotal CF. In part 1 we will focus on deploying a pre-built app to the cloud.
Before you begin
Download the “CF” command line tool from: https://console.run.pivotal.io/tools
Download the sample Java app that we will be using for this exercise: booking-mvc.war.zip
Unzip the file
1. set your target API to the api address of the cloud foundry interface. In this case our domain is cf.mattzwol.com
> cf api api.cf.mattzwol.com
note: you may need an extra command here in the line above to skip ssl verification. It will tell you if you do. In this case use > cf api api.cf.mattzwol.com –skip-ssl-validation
Deploying Pivotal Cloud Foundry in Your Own Home Lab
Assuming you have done steps 1-5 correctly:
Step 6
Pointing your web browser at the address you chose in step 2.i above (for me that is 10.0.0.150) should produce the following screen:
Deploying Pivotal Cloud Foundry in Your Own Home Lab
I wanted to see what it would take to deploy Pivotal Cloud Foundry (Pivotal CF) and all the cool things that Bosh brings. I used a very minimal config to prove that a small footprint would work. Here is a summary of my setup:
Desktop 1: Intel Quad Core i7, 32 GB RAM, 2TB Internal Drive
Desktop 2: Intel Quad Core i7, 32 GB RAM, 2TB Internal Drive
Synology DS1513+ NAS Device with 3 x 240GB Intel SSDs in a RAID-5 config
24 Port HP Gigabit Ethernet Switch