-
Download and install Virtualbox
-
Download and install Vagrant
curl -O https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.debNavigate to the directory of that file and execute
sudo apt install ./vagrant_2.2.7_x86_64.deb
vagrant --versionAfter that pick an operating system you want to install by going to Vagrant's download site and select one. Suppose you selected generic/ubuntu1804, then you execute
vagrant init generic/ubuntu1804That install a VM. Once done, execute vagrant up and log into the machine with vagrant ssh - et voila...
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install emacs curl jq -yssh-keygen -t rsa -b 4096 -C "[email protected]"Now clone the repo, track the relevant branch, and start the boostrap installer.
git branch --track my-branch origin/my-branch
git checkout my-branchUse crontab -e (edit) to create a crontab file as the current user. In that file we set the shell we want cron to use (i.e., bash), the path to executables, and we define the path of the script (my_awesome_script.sh) we want cron to run on a schedule. The installation script needs to run prior to create .env in the project root. We schedule the cron job such that runs every day at midnight:
SHELL=bin/bash
PATH=<paste output of echo $PATH here>
SCRIPT_DIR=/absolute/path/of/my/script
0 0 * * * cd $SCRIPT_DIR && . .env && . ./my_awesome_script.sh $ARG1 $ARG2 > /dev/null 2>&1Next we enable the cron log file by uncommenting the line cron.* in /etc/rsyslog.d/50-default.conf, followed by sudo systemctl restart rsyslog. Following that we monitor cron jobs by sudo tail -f /var/log/cron.log.