-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
25 lines (22 loc) · 925 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- mode: ruby -*-
# # vi: set ft=ruby :
# Basically following the default installation instructions:
# http://docs.docker.io/en/latest/installation/ubuntulinux/
$script = <<SCRIPT
apt-get -y install git curl
curl https://get.docker.io/gpg | apt-key add -
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
apt-get -y update
apt-get -y install lxc-docker linux-image-generic-lts-raring linux-headers-generic-lts-raring
usermod -a -G docker vagrant
reboot
SCRIPT
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'precise64'
# This box comes with a docker ready kernel: http://www.vagrantbox.es/
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
config.vm.provision 'shell', inline: $script
# Change this to whatever you want it to be
config.vm.network "private_network", ip: "192.168.50.5"
end