ZhongXiLu / DistributedComputing

Social Media Platform Built on Microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Distributed Computing

Group 6:

  • Zhong-Xi Lu
  • Angela Mizero
  • Thomas Van Bogaert

Documentation

The documentation can be found in the report.

Setup

Note that step 1 and 2 can be skipped, since the images are prebuilt and publicly available on DockerHub.

  1. Get kompose (in project root directory):
curl -L https://github.com/kubernetes/kompose/releases/download/v1.18.0/kompose-linux-amd64 -o kompose
chmod +x kompose
  1. Build and push images to DockerHub (in project root directory):

    1. Export docker-hub username (used in docker-compose file): export DOCKER_USERNAME=<username>
    2. Store docker-hub user credentials: docker login
    3. Build and push all images using kompose: kompose -f docker-compose-dev-kube.yml up
  2. Set up the services in kubernetes (in project root directory):

    1. Start minikube in the background: minikube start --memory=8192 --cpus=4
    2. Create pods: kubectl create -f export/
    3. Wait until all pods are running
    4. Set up: ./setup.sh
    5. The url's to access the main and chat application can be found via following commands:
      minikube service frontend --url
      minikube service chat --url
    6. Run all tests: ./runAllTests.sh

About

Social Media Platform Built on Microservices


Languages

Language:Python 59.1%Language:TypeScript 19.5%Language:HTML 12.3%Language:TeX 3.8%Language:CSS 1.9%Language:JavaScript 1.6%Language:Shell 1.5%Language:Dockerfile 0.3%