Skip to content

CS3219-AY2324S1/ay2324s1-course-assessment-g30

Repository files navigation

Review Assignment Due Date

Setting up PeerPrep

  1. Install docker desktop
  2. In the root directory, run docker-compose up -d --force-recreate --build
  3. Once the container is built, the application should be running on localhost:3002

Help

  • Give the containers sometime to start up
  • Delete the docker containers and images and rebuild the containers

Deployment of Peerprep onto GKE

  1. 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
  1. 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.
  2. 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
  3. Run deployclient.sh as such sh deployclient.sh
  4. Amend endpoint-config-map.yaml with the external IP for all services and apply it Kubectl apply -f endpoint-config-map.yaml
  5. Recreate all pods Kubectl delete pods –all

You can email [email protected] or contact @hongshenggggg on telegram should you need more assistance!

About

ay2324s1-course-assessment-g30 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Packages

No packages published