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.

sharjeelsayed/devops-box

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 75 commits ahead, 2 commits behind wardviaene:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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%