Red Hat Cloud Suite

Destinasia Introduction

Get started with AppDev in the Cloud
    Destinasia workshop - OpenShift Container Platform, Containers, JBoss BRMS, xPaaS, PHP, .NET & JEE

GUIDELINES

Some things to watch for in the workshop:
  • All links you can click to follow are MIDNIGHT BLUE
  • All video can be clicked on to view
  • All code will be: System.out.println("DARK RED");
  • Memory will be reserved for 12 GB of RAM:
    • Prevent problems by CLOSING ALL OTHER APPLICATIONS
    • DO NOT USE GOOGLE CHROME for this lab... to much memory needed per tab open

WORKSHOP GOALS

Gain insights into DevOps as used in a travel industry story:
  • Install OpenShift Container Platform (OCP)
  • Build and deploy container with Destinasia Travel Rules
  • Experience the power of Ansible, automate deployments:
    • xPaaS Decision Service with Destinasia Travel Rules
    • Hotel booking service (PHP)
    • Car booking service (.Net)
    • xPaaS Flight service (JEE)
    • xPaaS Integration service

WORKSHOP CLOUD

ARCHITECTURE

PREREQUISITES

The following requirements should be downloaded:

PREVIEW OCP INSTALL

WATCH THE INSTALLATON VIDEO

INSTALLATION

NOW LETS INSTALL OCP IN MINUTES

  1. Download ocp-install-demo project and unzip
  2. Run init.sh or init.bat
  3. Enjoy next few minutes before logging in
Log in to your new Cloud, for example this might be your assigned IP as reported during installation:

INSTALLATION

DESTINASIA TRAVEL RULES DEMO

  • Download rhcs-destinasia-rules-demo project and unzip
  • Download JBoss EAP 7.0.0 and JBoss BRMS 6.4.0
    • Add to installs directory
  • Run init.sh or init.bat, point it at OCP installation IP address:

    • $ init.sh 192.168.99.100


  • Enjoy the break before logging in:

    • http://destinasia-rules-demo-appdev-in-cloud.192.168.99.100.nip.io/business-central (password: jbossbrms1!)

Decision Table: HERTZ car discount is 15

ANSIBLE AUTOMATION

DEPLOYMENTS WITH PLAYBOOKS

Playbooks to deploy:

  1. Destinasia Travel Rules from container to xPaaS Decision Server for discount service
  2. .Net project to ASPNET for car service
  3. JEE project to xPaaS EAP Server for flight service
  4. PHP project to PHP for hotel service
  5. Fuse project to xPaaS Integration Server for integration service

ANSIBLE PLAYBOOK

IN SUPPORT DIRECTORY - RULE SERVICE

$ cd support/playbooks/deploy-ocp-services

# Run Rule service (xPaaS Decision Server) playbook
#
$ ./ansible-playbook-ruleservice.sh

ANSIBLE PLAYBOOK

IN SUPPORT DIRECTORY - CAR SERVICE

$ cd support/playbooks/deploy-ocp-services

# Run Car service (.Net) playbook
#
$ ./ansible-playbook-dotnetservice.sh

ANSIBLE PLAYBOOK

IN SUPPORT DIRECTORY - FLIGHT SERVICE

$ cd support/playbooks/deploy-ocp-services

# Run Flight service (JEE) playbook
#
$ ./ansible-playbook-javaservice.sh

ANSIBLE PLAYBOOK

IN SUPPORT DIRECTORY - HOTEL SERVICE

$ cd support/playbooks/deploy-ocp-services

# Run Hotel service (PHP) playbook
#
$ ./ansible-playbook-phpservice.sh

ANSIBLE PLAYBOOK

IN SUPPORT DIRECTORY - INTEGRATION SERVICE

$ cd support/playbooks/deploy-ocp-services

# Run Integration service (xPaaS Integration Server) playbook
#
$ ./ansible-playbook-fuseservice.sh

ANSIBLE IN ACTION

BUILDING SERVICES

ANSIBLE IN ACTION

DEPLOYING SERVICES

ANSIBLE IN ACTION

SERVICES FINAL BUILDS

ANSIBLE SERVICES DEPLOYED

Remember the HERTZ car discount?

  • Change HERTZ in carRentalCo field
  • Verify xPaaS discount rule changes carDisc from 15 to 0

WORKSHOP PROJECTS

RED HAT DEMO CENTRAL COLLECTION

NEXT UP...

You're about to become the lead developer for Destinasia Travel Agency discount rules project... fame and fortune awaits if you can complete the workshop successfully...

DESTINASIA SERVICES TEAM

Your tasked as the lead developer of the Destinasia travel discount project to set up a development environment in the Cloud for container-based application services deployments.

Once it's set up, you're validating the services using end-to-end testing. Tasks include installing OpenShift Container Platform (OCP), JBoss Enterprise Application Platform (EAP), JBoss Business Rules Management System (BRMS), several containerized web services and testing the solution using a REST client.

You'll need a laptop with minimum of 16GB of memory and internet access for downloading some of the requirements.
Pre-requisites: Laptop with 8GB RAM, Docker 17.06, OpenShift Container Platform 3.6, JBoss EAP 7.0, JBoss BRMS 6.4

HOW EACH LAB WORKS

A lab starts with a title page, a lab goal explaining what you're achieving and an overview architectural diagram highlighting in RED the component being worked on. The rest of the lab focuses on guiding through the steps to achieve the presented goal.

Each lab will finish up with the state you should be seeing, a page of contact information for eventual questions and a link to the next lab.

Now it's time to get to work...

LET'S GET STARTED...

Lab 1 - Install OpenShift Container Platform