Created
February 15, 2015 12:35
-
-
Save russmckendrick/c56c240dd7cf965ef6fe to your computer and use it in GitHub Desktop.
Vagrantfile for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.network "private_network", ip: "192.168.33.10" | |
| # Share an additional folder to the guest VM. The first argument is | |
| # the path on the host to the actual folder. The second argument is | |
| # the path on the guest to mount the folder. And the optional third | |
| # argument is a set of non-required options. | |
| # config.vm.synced_folder "../data", "/vagrant_data" | |
| config.vm.provider "virtualbox" do |v| | |
| v.memory = 1024 | |
| v.cpus = 2 | |
| end | |
| $script = <<SCRIPT | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-get update -y | |
| sudo apt-get install -y lxc-docker | |
| SCRIPT | |
| 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