Laboratory Environment
Just run the laboratory
The laboratory environment project is at https://gitlab.com/davidpuziol/study-docker/-/blob/develop/DCA/Environment
Environment
We need 3 machines for the entire course and we will use vagrant to quickly provision these machines in virtualbox
The necessary requirements:
In newer versions of Virtual Box One of the configurations I needed to make to release the range of IPs used in Virtual Box was:
# Network configuration for VirtualBox
sudo mkdir /etc/vbox
sudo echo "* 10.0.0.0/8 192.168.0.0/16" >> /etc/vbox/networks.conf
sudo echo "* 2001::/64" >> /etc/vbox/networks.conf
Figure it out how to install!
The provision.sh file is called to be run at the end of the installation of each machine. Note that there is a commented part in the file which is the automatic installation of Docker. It was commented on purpose so that you can do the installation in different environments. Otherwise, just uncomment and skip the installation step if it is not in your interest to learn.
Downloading boxes for VMs
# Add distribution boxes
vagrant box add centos/7
vagrant box add ubuntu/focal64
To bring up all VMs
vagrant up
To destroy all VMs
vagrant destroy
To bring up only one machine
vagrant up worker1
To destroy only one machine
vagrant destroy worker1