From d1dba4254ed896b14441fa660cac8c05125ef2c6 Mon Sep 17 00:00:00 2001 From: Pc Date: Sun, 26 Feb 2023 01:51:25 +0330 Subject: [PATCH] chore: Update README.md --- README.md | 29 ++++++++++++++++++++++++----- current-version.txt | 0 2 files changed, 24 insertions(+), 5 deletions(-) delete mode 100644 current-version.txt diff --git a/README.md b/README.md index e149b68..2e16768 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,9 @@ Using the CQRS pattern, we cut each business functionality into vertical slices, ## How to Run -### Config Certificate +> ### Docker + +#### Config Certificate Run the following commands for [Config SSL](https://docs.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-6.0) in your system @@ -150,20 +152,37 @@ dotnet dev-certs https --trust dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$ dotnet dev-certs https --trust ``` -### Docker Compose +#### Docker Compose Run this app in docker using the [docker-compose.yaml](./deployments/docker-compose/docker-compose.yaml) file with the below command at the root of the application: ```bash docker-compose -f ./deployments/docker-compose/docker-compose.yaml up -d ``` -Also we have a seprate docker file for up and running [infrastracture.yaml](./deployments/docker-compose/infrastracture.yaml) independently: + +> ### Kubernetes +1- Run the following command for apply TLS in kubernetes cluster ```bash -docker-compose -f ./deployments/docker-compose/infrastracture.yaml up -d +kubectl apply -f ./deployments/kubernetes/booking-secret.yml +``` +#### Note: +Also we can run this commands for create new tls.key and tls.crt and replace them with old one in `booking-secret.yml` +```bash +openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout tls.key -out tls.crt -subj "/CN=booking-microservices.com" -days 365 + +kubectl create secret tls booking-tls --key tls.key --cert tls.crt ``` -### Kubernetes - TODO +2- Run the following command for apply all services and deployments and configmap that we need +```bash +kubectl apply -f ./deployments/kubernetes/booking-microservices.yml +``` + +3- Run the following command for apply ingress-controller for revers proxy +```bash +kubectl apply -f ./deployments/kubernetes/ingress.yml +``` ### Documentation Apis diff --git a/current-version.txt b/current-version.txt deleted file mode 100644 index e69de29..0000000