Skip to content

Latest commit

 

History

History
103 lines (60 loc) · 4.29 KB

README.adoc

File metadata and controls

103 lines (60 loc) · 4.29 KB

Developer Experience

Goals

To deploy and configure an application, leverage the platform for monitoring & management of the microservices, and automate a continuous delivery pipeline.

Exercises

Console

Before we do anything lets take a look at the developer console and confirm install of the Cloud Foundry CLI on our laptops/desktops.

  • User Console Docs

  • login to the console at https://console.run.pcf.jkruckcloud.com

  • I’m using self signed certs, please proceed through the warnings in your browser.

  • If you’re using chrome, make sure it’s a recent.

  • Login with your work email address (all lowercase) and a password of password

  • Navigate to "Tools" (Left side)

  • Download and install the CLI for your platform..

CLI

Now that we have the CLI, lets push some basic applications and learn to navigate the CLI.

  • Login to Cloud Foundry

cf login -a https://api.run.pcf.jkruckcloud.com -u <your email> -p password -o <your org> -s development --skip-ssl-validation

  1. Note if you had SSL errors above, make sure to add --skip-ssl-validation to the command.

    1. -a is the api we’re targeting. Meaning all actions we perform will take place on this Cloud Foundry Foundation (deployment)

    2. -u is your username, in this workshop it’s your email address.

    3. -p is your password. It should be your PR AMER password

    4. -o is the name of your organization

    5. -s is the name of your space

    6. --skip-ssl-validation lets the CLI use a self signed cert (or a cert where the names don’t match up).

  2. This command is interactive, you don’t have to type your password on the command line…​

Pushing apps

  • Make sure you have targeted your development space (run cf target to check)

  • Clone our example applications

cd cf-hello-world-sample-apps/<pick a language>

Read README.md and push some apps!!

MAKE SURE YOU CD INTO THE INDIVIDUAL APP DIRECTORIES

More talking

  • Review the Keynote on Cloud_Ready_Apps Ready Apps

    • This should drive home how to build applications that will run well on PCF. As we’ll cover PCF can work with lots of applications, but cloud native is the best fit.

More Exercises

  • We’re going to switch to a java application called cities-service. We will use this application for the remainder of the workshop. Find and download the cities jars at the following location.

    • https://s3-us-west-1.amazonaws.com/pcf-icm/cities-service.jar

    • You can also find the code in this repository in dev-experience/cities. We’ve made some changes to the code in the jar referenced above to force a failure early on. If you choose to compile and run the code yourself please remove the hsqldb dependency from the build file. Please note there is not time in the class to troubleshoot build issues, so if you experience problems please use the jar above.

  • Take a quick look at the architecture of the cities application.

Applications on Pivotal CF

The following exercises should be completed for cities-service.

We will complete the following exercises on PWS because of THD network restrictions.