Skip to content

sishida/acmeair-mainservice-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acme Air Main Service - Java/Liberty

An implementation of the Acme Air Main Service for Java/Liberty. The main service primarily consists of the presentation layer (web pages) that interact with the other services.

This implementation can support running on a variety of runtime platforms including standalone bare metal system, Virtual Machines, docker containers, IBM Cloud, IBM Cloud Private, and other Kubernetes environments.

Build Instructions

Full Benchmark Installation Instructions on various docker enviornments.

alt text

Prereq *IMPORTANT*

All of these examples assume you have the acmeair-mainservice-java, acmeair-authservice-java, acmeair-bookingservice-java, acmeair-customerservice-java, and acmeair-flightservice-java directories, (and possibly others) on your docker machine in the same directory. It also assumes all applications have been built with maven.

Docker Instructions

Prereq: Install Docker, docker-compose, and start Docker daemon on your local machine

  1. cd acmeair-mainservice-java
  2. Create docker network
  • docker network create --driver bridge my-net
  1. Build/Start Containers. This will build all the micro-services, mongo db instances, and an nginx proxy.

    • docker-compose build
    • NETWORK=my-net docker-compose up
  2. Go to http://docker_machine_ip/main/acmeair

  3. Go to the Configuration Page and Load the Database

Minikube Instructions

  1. minikube docker-env
  2. eval $(minikube docker-env)
  3. minikube addons enable ingress
  4. cd acmeair-mainservice-java/scripts
  5. Build and Deploy Services ./buildAndDeployToMinikube.sh
  6. Wait a couple minutes and go to http://kubernetes_ip/acmeair
  7. Go to the Configuration Page and Load the Database

IBM Cloud Private Instructions - w/ Ingress

This doc assumes that

  • ICP is installed and configured

  • The docker env is logged into the CFC docker repo

    • docker login mycluster.icp:8500
  • kubectl and helm are attached the ICP cluster

  • You are running ICP as admin

  • maven is installed and set up to build with a full SDK.

  1. Build and push the apps

    cd acmeair-mainservice-java/scripts

    ./buildAndPushtoICP.sh

  2. Deploy to ICP.

  3. Using ibm-websphere-liberty helm chart

`./deployChartToICP.sh`
  1. Using loose deployment manifests
`./deployToICP.sh`
  1. Wait a couple minutes and go to http://proxy_ip/acmeair

  2. Go to the Configuration Page and Load the Database

  3. Cleanup

  4. Helm chart

`./deleteChartRelease.sh`
  1. Loose deployment manifests
`./deleteKubeObjects.sh`

About

This service contains the front end of AcmeAir Microservices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 42.2%
  • Smarty 32.8%
  • Shell 16.2%
  • JavaScript 2.8%
  • CSS 2.2%
  • HCL 2.1%
  • Other 1.7%