Skip to content

alphonse92/vplplusplus_composer

Repository files navigation

Vpl ++ Microservices

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

Requeriments

  1. Docker
  2. Docker Compose
  3. Kubernetes (if you want to deploy to kubernetes)
  4. Python 3
  5. Jinja (j2cli using pip)

Not required but usefull tools:

  1. Mongo client: if you want to change or read the api data from scratch (It may be dangerous).
  2. Mysql client: if you want to change pr read the moodle data from scratch (It may be dangerous).

Install

git clone [email protected]:alphonse92/vplplusplus_composer.git
./intall.sh

Configuration

  1. Open the docker-compose.deployment.yaml
  2. change the environment variables as you need

To know how to configure the other microservices please visit each microservice repository:

Repositories

All microservices has it own image on docker hub following the next link: https://hub.docker.com/u/alphonse92

Microservice repositories
  1. VPL++ API microservice
  2. Jail With JLib Runner microservice
  3. VPL++ Client microservice
  4. Moodle microservice
  5. Gateway microsevice
Other repositories
  1. Docker vpl Jail microservice
  2. Vpl ++ Java Runner
External projects:
  1. Mongo
  2. Mysql

Deploying

Docker compose

Run docker-compose up

Localhost

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

  1. Send the activity to moodle. Return a websocket with the url to the jail to track the process of the execution
  2. The browser tries to connect to the jail.

However, the browser cant reach the jail URL because it returns a docker internal IP.

issue

To resolve this issue, you need to ensure your PC can reach the jail.

  1. Open the file /etc/hosts/
  2. Add to the end of document the next line 127.0.0.1 jail
  3. Flush the dns cache sudo dscacheutil -flushcache

To test all is ok, just open the browser and open http://jail:$JAIL_PORT/OK

Kubernetes (K8S)

Please visit the guide of kubernetes deployment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published