@@ -289,8 +289,8 @@ Use [**api-workbench**](./api-workbench.rest) inside Visual Studio code with [RE
289289 " password " : " test" ,
290290 " rawData " : " "
291291 },
292- " issuer " : " genocs-identity -service" ,
293- " validIssuer " : " genocs-identity -service" ,
292+ " issuer " : " genocs-identities -service" ,
293+ " validIssuer " : " genocs-identities -service" ,
294294 " validateAudience " : false,
295295 " validateIssuer " : true,
296296 " validateLifetime " : true,
@@ -521,35 +521,60 @@ docker builder prune
521521Following commands are useful to build and push the images one by one
522522
523523``` bash
524- cd src/apps
524+ # Build images
525+ ./src/apps/scripts/build-images.sh
525526
526- # Build the api gateway
527- docker build -t genocs/apigateway:1.0.0 -t genocs/apigateway:latest -f ./apigateway.dockerfile .
527+ # Push images
528+ ./src/apps/scripts/push-images.sh
529+ ```
530+
531+ ### How to deploy the application on Kubernetes
528532
529- # Build the identity service
530- docker build -t genocs/identities:1.0.0 -t genocs/identities:latest -f ./identity.dockerfile .
533+ You can deploy the application on Kubernetes cluster.
531534
532- # Build the order service
533- docker build -t genocs/orders:1.0.0 -t genocs/orders:latest -f ./containers/order.dockerfile .
535+ ``` bash
536+ # Build images
537+ ./src/apps/scripts/deploy-k8s.sh
538+ ```
534539
535- # Build the product service
536- docker build -t genocs/products:1.0.0 -t genocs/products:latest -f ./product.dockerfile .
540+ ### How to use makefile
537541
538- # Build the signalr service
539- docker build -t genocs/signalr:1.0.0 -t genocs/signalr:latest -f ./signalr.dockerfile .
542+ Prerequisites:
543+ - make
540544
545+ To install make on MacOS you can use brew
541546
542- # Push on Dockerhub
543- docker push genocs/apigateway:1.0.0
544- docker push genocs/apigateway:latest
545- docker push genocs/identities:1.0.0
546- docker push genocs/identities:latest
547- docker push genocs/orders:1.0.0
548- docker push genocs/orders:latest
549- docker push genocs/products:1.0.0
550- docker push genocs/products:latest
551- docker push genocs/signalr:1.0.0
552- docker push genocs/signalr:latest
547+ ``` bash
548+ brew install make
549+ ```
550+
551+ To install make on Ubuntu you can use apt
552+
553+ ``` bash
554+ sudo apt install make
555+ ```
556+
557+ To install make on Windows you can use [ choco] ( https://chocolatey.org/ )
558+
559+ ``` bash
560+ choco install make
561+ ```
562+
563+ Upon installation you can use the makefile to build, run, deploy the application.
564+
565+ ``` bash
566+ # Build the solution
567+ make build
568+ ```
569+
570+
571+ ### How to use Helm chart
572+
573+ Inside the folder ** ./src/apps/k8s/helm** you can find the Helm chart to deploy the application on Kubernetes.
574+
575+ ``` bash
576+ cd ./src/apps/k8s/helm
577+ microk8s helm install genocs ./gnxchart
553578```
554579
555580
0 commit comments