Skip to content

Instantly share code, notes, and snippets.

@emarref
Last active August 29, 2015 14:25
Show Gist options
  • Save emarref/c7c99703000f1157239c to your computer and use it in GitHub Desktop.
Save emarref/c7c99703000f1157239c to your computer and use it in GitHub Desktop.
Simple Vagrantfile that you can drop in any dir and boot up an Ubuntu server with `vagrant up`.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder ".", "/var/www", type: "nfs"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
# Uncomment the following block to add provisioning run as root
# config.vm.provision "shell", inline: <<-SHELL
# apt-get update
# apt-get install -y git
# SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment