Skip to content

Instantly share code, notes, and snippets.

@rasheedamir
Last active August 29, 2015 14:17
Show Gist options
  • Save rasheedamir/693b781894029792f005 to your computer and use it in GitHub Desktop.
Save rasheedamir/693b781894029792f005 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
apt-get update
# Use docker's install script to install latest version.
curl -s https://get.docker.io/ubuntu/ | sudo sh
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Use Ubuntu Trusty 64 (14.04) box.
config.vm.box = "ubuntu/trusty64"
# Provision using inline script defined above.
config.vm.provision "shell", inline: $script
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment