Skip to content

alexvasseur/pcf-ers-demo

 
 

Repository files navigation

Build Status Download

PCF Elastic Runtime Service (ERS) Base Demo

Base application to demonstrate PCF ERS

Credits and contributions

As you all know, we often transform other work into our own. This is all based from Andrew Ripka's cf-workshop-spring-boot github repo with some basic modifications.

Introduction

This base application is intended to demonstrate some of the basic functionality of PCF ERS:

  • PCF api, target, login, and push
  • PCF environment variables
    • Spring Cloud Profiles
  • Scaling, self-healing, router and load balancing
  • RDBMS service and application auto-configuration
  • Blue green deployments

Getting Started

Prerequisites

Building

$ git clone [REPO]
$ cd [REPO]
$ ./mvnw clean install

To run the application locally

The application is set to use an embedded H2 database in non-PaaS environments, and to take advantage of Pivotal CF's auto-configuration for services. To use a MySQL Dev service in PCF, simply create and bind a service to the app and restart the app. No additional configuration is necessary when running locally or in Pivotal CF.

In Pivotal CF, it is assumed that a Pivotal MySQL service will be used.

$ ./mvnw spring-boot:run

Then go to the http://localhost:8080 in your browser

Running on Cloud Foundry

Take a look at the manifest file for the recommended setting. Adjust them as per your environment.

Demo Scripts summary

The application tries to be self-descriptive. You'll see when you access the application.

About

Pivotal Cloud Foundry Elastic Runtime Service basic demo

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 61.1%
  • Java 33.3%
  • Shell 3.1%
  • Dockerfile 2.5%