Skip to content

Latest commit

 

History

History
144 lines (106 loc) · 3.47 KB

Readme.adoc

File metadata and controls

144 lines (106 loc) · 3.47 KB

SmartTicket!

Intro

This is a reactive microservice demo application.

The application is using the following Product and Frameworks:

Architecture

architecture

Run the demo application

kubectl apply -f https://raw.githubusercontent.com/bfrevel/smartticket/main/smartticket.yaml

Instructions for minikube

# Start minikube
minikube start

# Enable Nginx Proxy
minikube addons enable ingress

# Apply the SmartTicket application
kubectl apply -f smartticket.yaml

# On MacOS (don't forget to enter your password)
minikube tunnel

Instrucations for docker-desktop

# Install Nginx Proxy
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.9.4/deploy/static/provider/cloud/deploy.yaml

# Apply the SmartTicket application
kubectl apply -f smartticket.yaml

Open your browser http://smartticket.localdev.me

Run your private demo

Build your private demo

Important

Adapt the docker registry. Replace <bfrevel> with your personal registry.

event-api
cd event-api

# quarkus
quarkus build --native -Dquarkus.native.container-build=true -Dquarkus.native.resources.includes=application.properties
# gradle wrapper
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.native.resources.includes=application.properties

docker build -t bfrevel/smartticket-event-api:latest -f src/main/docker/Dockerfile.native-micro .
docker push bfrevel/smartticket-event-api:latest
order-api
cd order-api

# quarkus
quarkus build --native -Dquarkus.native.container-build=true -Dquarkus.native.resources.includes=application.properties
# gradle wrapper
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.native.resources.includes=application.properties

docker build -t bfrevel/smartticket-order-api:latest -f src/main/docker/Dockerfile.native-micro .
docker push bfrevel/smartticket-order-api:latest
order-processor
cd order-processor

# quarkus
quarkus build --native -Dquarkus.native.container-build=true -Dquarkus.native.resources.includes=application.properties
# gradle wrapper
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.native.resources.includes=application.properties

docker build -t bfrevel/smartticket-order-processor:latest -f src/main/docker/Dockerfile.native-micro .
docker push bfrevel/smartticket-order-processor:latest
order-rabbitmq
cd order-rabbitmq
docker build -t bfrevel/smartticket-order-rabbitmq:latest .
docker push bfrevel/smartticket-order-rabbitmq:latest
web
cd web
npm clean-install
npm run build
docker build -t bfrevel/smartticket-web:latest .
docker push bfrevel/smartticket-web:latest

Run your private demo

Run your local project
kubectl apply -f smartticket.yaml