Initialization scripts for Linux containers
You will need to install LXD which is a container and virtual machine manager.
Virtual machines are heavy. Our group does not have the computing resources to run 12+ virtual machines.
In this context, let the word cluster mean a group of hosts
frontend
hosts the Apache web serverdatabase
hosts the MySQL database and acts as the RabbitMQ broker for the clusterdmz
is the "demilitarized zone" between the the API the other hosts
Create a file called .env
which defines the following variables.
export ZEROTIER_ID=...
Run scripts in the following order.
./init_frontend.sh
./init_database.sh
./init_dmz.sh
./init_network.sh
Sometimes the scripts don't work on the first try due to the network not being active immediately after starting the container. I am working on fixing this.