-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
25 lines (22 loc) · 1.09 KB
/
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 :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$provisioning_script = <<EOF
sh -c "curl -s http://get.docker.io/gpg | apt-key add -"
sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y lxc-docker linux-image-extra-`uname -r` git
sh -c "echo 'docker' > /etc/hostname"
sh -c "echo '127.0.0.1 docker' >> /etc/hosts"
service hostname restart
sh -c "git clone https://github.com/kstaken/dockerfile-examples.git /root/dockerfile-examples"
EOF
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "raring64"
config.vm.box_url = "http://files.fibr.io/vagrant-virtualbox-raring64.box"
config.vm.box_url = "http://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-vagrant-amd64-disk1.box"
config.vm.provision "shell", inline: $provisioning_script
#config.vm.network :private_network, ip: "1.2.3.4", :netmask => "255.255.255.0"
#config.vm.network :public_network
end