In this Tutorial we are going to setup our Project Structure which we are going to use in many of the other Tutorials. This part of the series will change often, depending on the progress, but will remain backwards-compatible with older Tutorials.
- A Domain (spikyspam.site in this Tutorial*)
- A Digital Ocean Account (any other DNS provider will do, like Cloudflare, ...)
- 018. Install Ubuntu on ProxMox
-
On your Windows Host
- Install Virt Viewer (https://virt-manager.org/download)
- Set VM Options in ProxMox:
- VM -> Hardware -> Display -> SPICE
- VM -> Hardware -> Processors -> Host
-
On your Ubuntu Guest
- Install some necessary Packages:
sudo apt update && sudo apt upgrade -y sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu-kvm qemu-guest-agent curl
- Your IP address should be 192.168.0.30 (for this tutorial)
- Install some necessary Packages:
-
Create a .bash_profile file in your Solution Folder
⚠️ For this tutorial we are using the following solution folder location:
$HOME/Desktop/Tutorials/SS
This is the main script for our complete Solution. Without it nothing will work. You need to add this file to your .gitignore file. 💥
mkdir $HOME/Desktop/Tutorials mkdir $HOME/Desktop/Tutorials/SS nano $HOME/Desktop/Tutorials/SS/.bash_profile
See this no-regrets.sh file for the latest version. Passwords and Secret Keys in this file are only examples, and are no where used. Otherwise let me know 😋
-
Call the solutions .bash_pofile by editing .bashrc. Be sure to change the
$TF_VAR_PATH
variable to your local directory if needed:nano $HOME/.bashrc
# .bashrc export TF_VAR_PATH=$HOME/Desktop/Tutorials/SS source $TF_VAR_PATH/.bash_profile
-
Reload your Environment. (close and re-open your Terminal)
source $HOME/.bashrc
-
Create Project Folders in your solution:
mkdir $TF_VAR_PATH/SS mkdir $TF_VAR_PATH/SS/version mkdir $TF_VAR_PATH/SS/version/app mkdir $TF_VAR_PATH/SS/version/cli mkdir $TF_VAR_PATH/SS/version/cluster mkdir $TF_VAR_PATH/SS/version/docker mkdir $TF_VAR_PATH/SS/version/helm mkdir $TF_VAR_PATH/SS/version/terraform mkdir $TF_VAR_PATH/SS/CLI mkdir $TF_VAR_PATH/SS.APP
-
Create Version Environment variables scripts:
touch $TF_VAR_PATH/SS/version/app/version.sh touch $TF_VAR_PATH/SS/version/cli/version.sh touch $TF_VAR_PATH/SS/version/docker/version.sh touch $TF_VAR_PATH/SS/version/cluster/version.sh touch $TF_VAR_PATH/SS/version/helm/version.sh touch $TF_VAR_PATH/SS/version/terraform/version.sh nano $TF_VAR_PATH/SS/version/docker/version.sh
Tutorials/SS/SS/version/docker/version.sh
Lines 1 to 42 in 72bcb0e
-
Create Application Folders for docker, helm and other configuration files
mkdir $TF_VAR_PATH_APP/docker mkdir $TF_VAR_PATH_APP/helm mkdir $TF_VAR_PATH_APP/yaml
-
Execute the following commands to Install Docker:
curl -sSL https://get.docker.com/ | sh sudo usermod -aG docker $USER newgrp docker sudo service docker start sudo systemctl enable docker.service sudo systemctl enable containerd.service
-
Reboot the VM:
reboot