NLxAROSA / cnd-on-pcf-101-workshop

Introduction into cloud native development and cloud foundry workshop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pivotal Cloud Foundry Workshop - Fortune Cookie Service

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

Prerequisites

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).

Verify PCF CLI is working

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>

Build the project

For every exercise we need to build the project:

mvn clean package

In case you don't have Maven installed run:

./mvnw clean package

Run the application locally

Before we push the application to Cloud Foundry run it locally first!

./mvnw spring-boot:run

Open in the browser: http://localhost:8080/

Exercises

For the solution of Exercise 2, proceed to the next branch.

Tips

  • 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!

About

Introduction into cloud native development and cloud foundry workshop.


Languages

Language:Java 100.0%