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.
- 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
-
Build and push images to DockerHub (in project root directory):
- Export docker-hub username (used in docker-compose file):
export DOCKER_USERNAME=<username>
- Store docker-hub user credentials:
docker login
- Build and push all images using
kompose
:kompose -f docker-compose-dev-kube.yml up
- Export docker-hub username (used in docker-compose file):
-
Set up the services in kubernetes (in project root directory):
- Start minikube in the background:
minikube start --memory=8192 --cpus=4
- Create pods:
kubectl create -f export/
- Wait until all pods are running
- Set up:
./setup.sh
- The url's to access the main and chat application can be found via following commands:
minikube service frontend --url minikube service chat --url
- Run all tests:
./runAllTests.sh
- Start minikube in the background: