Development VM Setup

Quick Guide on how I setup my Ubuntu VM (22.04) on VirtualBox

Prerequisites

Environment Setup

  1. Install Terminator

    sudo apt install terminator
    
  2. Install Docker Engine

    sudo apt update
    sudo apt install curl apt-transport-https ca-certificates software-properties-common 
    
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    sudo apt update
    
    sudo apt install docker-ce -y
    sudo systemctl status docker
    
    sudo usermod -aG docker $USER
    newgrp docker
    
  3. Install Kubernetes Tools

    • kubectl

      curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
      sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
      kubectl version --client
      rm -rf kubectl
      
    • k3d

      curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
      
    • Helm

      curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
      chmod 700 get_helm.sh
      ./get_helm.sh
      rm -rf get_helm.sh