-
NGINX Ingress Controller is required
kubectl apply -f https://raw.githubusercontent.com/bfrevel/smartticket/main/smartticket.yaml
# 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
# 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
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