This repository contains all the stuff to install the microservices
nombre | url |
---|---|
VPL ++ front end | https://35.198.14.0/ |
Moodle con VPL | https://35.198.14.0/client |
- Docker
- Docker Compose
- Kubernetes (if you want to deploy to kubernetes)
- Python 3
- Jinja (j2cli using pip)
- Mongo client: if you want to change or read the api data from scratch (It may be dangerous).
- Mysql client: if you want to change pr read the moodle data from scratch (It may be dangerous).
git clone [email protected]:alphonse92/vplplusplus_composer.git
./intall.sh
- Open the docker-compose.deployment.yaml
- change the environment variables as you need
To know how to configure the other microservices please visit each microservice repository:
All microservices has it own image on docker hub following the next link: https://hub.docker.com/u/alphonse92
- VPL++ API microservice
- Jail With JLib Runner microservice
- VPL++ Client microservice
- Moodle microservice
- Gateway microsevice
Run docker-compose up
Run docker-compose up
There a issue regarding to how moodle and vpl works. When the student or the teacher tries to execute a VPL activity it happen in two phases
- Send the activity to moodle. Return a websocket with the url to the jail to track the process of the execution
- The browser tries to connect to the jail.
However, the browser cant reach the jail URL because it returns a docker internal IP.
To resolve this issue, you need to ensure your PC can reach the jail.
- Open the file /etc/hosts/
- Add to the end of document the next line
127.0.0.1 jail
- Flush the dns cache
sudo dscacheutil -flushcache
To test all is ok, just open the browser and open http://jail:$JAIL_PORT/OK
Please visit the guide of kubernetes deployment