Enterprise Coffee

This is the coffee shop example project for TODO

It comprises two applications, coffee-shop and barista, built by Java EE and MicroProfile, which can be deployed to a Kubernetes and Istio cluster.

Building and running

Build coffee-shop

cd coffee-shop mvn clean install docker build -t ocn-book:coffee-shop .

Build barista

cd barista mvn clean insatll docker build -t ocn-book:barista .

Set up docker network

docker network create --driver bridge ocn-book-net

Run barista

docker run --network=ocn-book-net --name=barista ocn-book:barista

Run coffee-shop

docker run -p 9080:9080 -p 9445:9443 --network=ocn-book-net --name=coffee-shop -e default_barista_base_url='http://barista:9081' -e default_http_port=9080 -e default_https_port=9443 ocn-book:coffee-shop

Run zipkin

docker run -d -p 9411:9411 --network=ocn-book-net --name=zipkin openzipkin/zipkin