This repository will setup a development environment for the MRIPTA project. It is using the bionic64 base image and then running the provision.sh to install and configure all the required services. The deployment is done using the deploy.sh script without sudo privileges.
Start by cloning the repo.
On windows run your terminal client as admin, we recommend using something like Git Bash and then run vagrant up on the vagrant project folder. On other operating systems just do vagrant up on the vagrant project folder and you are ready to go.
The services versions installed in this image was carefully selected to be as close possible to the ones running on the production server.
- Ubuntu 18.04 LTS
- PHP 7.4
- NodeJS 14.17 LTS
- NPM 6.14
- MongoDB 4.2
- MySQL 5.7
- Nginx 1.20
- YARN 1.22
- MongoDB
Username:admin
Password:admin - MySQL
Username:root
Password:root
| Host | Guest | Service |
|---|---|---|
| 80 | 80 | HTTP |
| 1883 | 1883 | MQTT |
| 3306 | 3306 | MySQL |
| 8000 | 8000 | PHP Dev |
| 8888 | 8888 | WebSocket |
| 27017 | 27017 | MongoDB |
Broker Repository
The broker script is running inside a screen with nodemon constantly checking for new file changes and consequently restarting the process to load them.
To list the screen processes screen -ls
Attach screen -r
Detach CTRL + A D
Create a new broker session screen -dmS broker nodemon -L index.js