Skip to content

Instantly share code, notes, and snippets.

@patheard
Last active March 1, 2019 13:46
Show Gist options
  • Save patheard/b31d0ec45131e1701aa756eef0e87f9d to your computer and use it in GitHub Desktop.
Save patheard/b31d0ec45131e1701aa756eef0e87f9d to your computer and use it in GitHub Desktop.
Vagrant VM: ubuntu/trusty64
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder ".", "/vagrant", type: "smb", mount_options: ["vers=2.1"]
config.vm.provider "virtualbox" do |vb|
vb.name = "docker-vm"
vb.memory = 4096
vb.cpus = 1
end
config.vm.provision "shell", inline: <<-SHELL
echo "\n----- Upgrade OS and cleanup ------\n"
apt-get update
apt-get -y dist-upgrade
apt-get -y install --install-recommends linux-generic-lts-xenial
apt-get -y autoremove
echo "\n----- Install Docker ------\n"
wget -qO- https://get.docker.com/ | sh
usermod -aG docker vagrant
echo "\n----- Install git, node, npm ------\n"
apt-get -y install git node npm
npm config set strict-ssl false
npm install -g n
n stable
npm config set strict-ssl true
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment