Skip to content

A Vagrant project to deploy an Ubuntu 20.04 VM on VirtualBox with DevOps tools. Multiple VMs can be also be deployed to act as Kubernetes or Docker Swarm Nodes.

Notifications You must be signed in to change notification settings

sharjeelsayed/devops-box

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DevOps box and Kubernetes or Docker Swarm Nodes

  • A Vagrant project to deploy an Ubuntu 20.04 VM on VirtualBox with DevOps tools
  • Multiple VMs can be also be deployed to act as Kubernetes or Docker Swarm Nodes. Edit the value of the NODE_COUNT in the Vagrantfile to deploy the number of nodes you need.
  • Additional parameters like BOX_IMAGE , CPU and MEMORY can also be set at Vagrantfile

Tools included (Latest Versions)

  • Ansible
  • AWS CLI
  • AWS EB CLI
  • Docker
  • eksctl
  • Git
  • MiniKube
  • Packer
  • Terraform
  • Ubuntu 20.04 LTS Focal Fossa
  • ufw
  • VirtualBox
  • VSCode

Installation on MacOS Catalina

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" # Install Homebrew

brew cask install virtualbox vagrant # Install VirtualBox and vagrant

git clone https://github.com/sharjeelsayed/devops-box.git && cd devops-box  && vagrant box update && vagrant up # Setup and launch an Ubuntu instance on VirtualBox

vagrant ssh-config >> "$HOME"/.ssh/config  # Configure ssh for login
ssh devops-box-1  # Connect to your new instance without a password

Connecting via VSCode

brew cask install visual-studio-code && code # Install and launch VSCode

Press ⌘⇧P -> "Remote-SSH: Connect to Host" -> Click on "devops-box-1"
Voila..You are connected !!

Sources

https://app.vagrantup.com/boxes/search?utf8=%E2%9C%93&sort=downloads&provider=virtualbox&q=ubuntu
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
https://docs.docker.com/engine/install/ubuntu
https://github.com/docker/docker-install
https://github.com/wardviaene/devops-box
https://manski.net/2016/09/vagrant-multi-machine-tutorial
https://medium.com/@lizrice/ssh-to-vagrant-from-vscode-5b2c5996bc0e
https://minikube.sigs.k8s.io/docs/drivers/docker
https://minikube.sigs.k8s.io/docs/start
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs
https://stackoverflow.com/questions/10864372/how-to-ssh-to-vagrant-without-actually-running-vagrant-ssh
https://www.vagrantup.com/docs/cli/box
https://www.vagrantup.com/docs/cli/reload
https://www.vagrantup.com/docs/multi-machine
https://www.vagrantup.com/docs/networking/public_network
https://www.vagrantup.com/docs/providers/virtualbox/configuration
https://youtu.be/vBreXjkizgo #Vagrant Crash Course by Traversy Media

About

A Vagrant project to deploy an Ubuntu 20.04 VM on VirtualBox with DevOps tools. Multiple VMs can be also be deployed to act as Kubernetes or Docker Swarm Nodes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%