8000 samsung-cf-training/day3 at master · lukehwang/samsung-cf-training · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

day3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Day 3 excercises

1 - Blue/Green deployment script

  1. Copy the source code of the cf-example-sinatra application to the directory cf-example-sinatra-green: cp cf-example-sinatra cf-example-sinatra-green -R
  2. Open the public/style.css file and change the header.background property to #00cc00.

Your mission: create a bash script that will do blue/green deployment on the cf-sinatra-example application, deploying firs the "blue" version and then the "green" version.

2 - Fix the deployment

  1. Get the manifest file: curl -o manifest.yml -J -L 'https://raw.githubusercontent.com/eljuanchosf/samsung-cf-training/master/day3/manifest.yml'

  2. Replace all the occurences of the following placeholders with the values for your deployment:

YOUR_CF_ELASTIC_IP
YOUR_AVAILABILITY_ZONE
YOUR_BOSH_DIRECTOR_UUID
YOUR_SUBNET_ID
  1. Set the manifest bosh deployment manifest.yml

  2. Deploy! bosh -n deploy

  3. Once Cloud Foundry has been deployed, deploy the cf-example-sinatra application: cf push my-sinatra-app

  4. Install the CF Firehose plugin: cf install-plugin "Firehose Plugin" -r CF-Community

  5. Now, try to tail the logs: cf nozzle And select the 'LogMessage' option.

Nice error, huh? It will return that you are NOT authorized, when you should be... what could be happening?

Your mission: try to fix the manifest.yml file by applying all the platform troubleshooting techniques learned in class.

3 - Create your own Buildpack!

Follow the instructions in this tutorial.

Your mission: have a custom buildpack ready!

0