- Install docker desktop
- In the root directory, run
docker-compose up -d --force-recreate --build
- Once the container is built, the application should be running on localhost:3002
- Give the containers sometime to start up
- Delete the docker containers and images and rebuild the containers
- Initialize secrets in shell environment
export DB_USERNAME=x
export DB_PASSWORD=x
export JWT_KEY=x
export ADMIN_PASSWORD=x
export OPENAI_KEY=x
- Run deployment.sh, as such
sh deployment.sh
, this will build all the images and push them to artifact registry, create the config endpoints, secrets, service accounts needed and start the load balancers. - Get the load balancer IP for each service and amend client/.env. This is required since in React, the environment variables have to be built with the application, therefore we are not able to build the frontend, deploy it and then inject the variables later
- Run deployclient.sh as such
sh deployclient.sh
- Amend endpoint-config-map.yaml with the external IP for all services and apply it
Kubectl apply -f endpoint-config-map.yaml
- Recreate all pods
Kubectl delete pods –all
You can email [email protected] or contact @hongshenggggg on telegram should you need more assistance!