Lab: Cloud Foundry PaaS and Swisscom Application Cloud
Pedagogical objectives
-
Deploy a web application on a Cloud Foundry PaaS
-
Instantiate a database service in the Marketplace and bind it to the web app
Tasks
Before you can start you have to open an account and prepare your machine by following the preparation instructions.
The lab instructions can be found in two blog postings on Swisscom's web site:
Updates to the instructions:
-
In the web console make note of the org into which you have been invited, MSE-CLOUD1 or MSE-CLOUD2. Also make note of the space, which bears your name, like marcel.g. You find both in the left margin.
-
After you logged into Swisscom Application Cloud with
cf login
select the org and space into which you have been invited by running the following command:cf target -o <myorg> -s <myspace>
-
To name your app, instead of choosing a random number like
myApp<YOURNUMBER>
use your last name, likemyApp<YOURLASTNAME>
. -
After you have updated your app to use MongoDB it is sufficient to do restart it, it is not necessary to restage it.
After the lab
We will close the orgs MSE-CLOUD1 and MSE-CLOUD2 a few days after the lab. However you can keep the account and continue to use it for free for the first three months (you will obtain credit of 100 CHF every month). For this you need to provide credit card information and create a new org.