This project is composed by tools using some technologies such as container (Docker swarm and docker-compose), virtualization (Vagrant), infra as code (Chef). In addition, other stuffs as Makefile, shell script, systemd files, and cronjob were here too.
There are 2 services distributed (global mode) in a docker swarm cluster with 2 nodes (both are manager).
All services are provided just in a period of time between 8h~18h. So, if you want to use it, try out only on business hours.
The ssh access is only allowed on networks 192.168.0.0/24 and localhost.
This project is recommended to install using any of Linux distributions specially Ubuntu Bionic (18.04).
Next you can use one of these options as requirements:
$ [sudo] apt update
$ [sudo] apt install -y vagrant virtualbox dkms virtualbox-dkms
$ [sudo] apt update
$ [sudo] apt install -y docker.io
$ [sudo] usermod -aG docker $(whoami)
$ [sudo] curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ [sudo] chmod +x /usr/local/bin/docker-compose
After the requirements installed on your environment, now you just have to follow these next steps below:
First step is run the Vagrant to create the virtual machines that are gonna be used. And then, you can access it through http://localhost:8081 or http://localhost:8082
$ [sudo] make all
$ [sudo] nw start
$ docker-compose up
There is a host command called nw
which it provides management options on NW Project service. Those options are:
$ [sudo] nw {destroy|reload|start|status|stop}
To follow the infrastructure status, the lazydocker was used as a simple terminal UI solution, through the command:
$ [sudo] nw status
On that view has CPU, Memory, Logs, and more management stuffs in an easy way of usage.