This workshop get you up to speed with Pivotal Cloud Foundry. In this workshop you are going to develop a Spring Boot 2 micro service and deploy it to Cloud Foundry.
Getting started with Pivotal Cloud Foundry
We expect you to bring:
- A laptop with Windows, Linux or MacOS
- A working internet connection
- An IDE or code editor of your choice
We expect you have installed:
Login credentials and access to the environment will be provided by the instructor(s).
cf -v
Tip: if the environment you're running against has self-signed certificates and you are presented with an error, use the --skip-ssl-validation
parameter.
Login to Cloud Foundry:
cf login -a <API url provided by instructor>
Email> <provided user>
Password> <provided password>
For every exercise we need to build the project:
mvn clean package
In case you don't have Maven installed run:
./mvnw clean package
Before we push the application to Cloud Foundry run it locally first!
./mvnw spring-boot:run
Open in the browser: http://localhost:8080/
For the solution of Exercise 2, proceed to the next branch.
- Stuck? Some exercises have hints to help you!
- Stuck? Ask your neighbour to pair with you!
- Stuck? Every exercise has a working solution in its own branch!