-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
27 lines (24 loc) · 1004 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
26
27
$script = <<SCRIPT
apt-get update -y
apt-get install -y linux-image-generic-lts-raring linux-headers-generic-lts-raring
apt-get install -y git-core
apt-get install -y ruby1.9.3
curl -s https://get.docker.io/ubuntu/ | sudo sh
date > /etc/vagrant_provisioned_at
# Map docker to tcp port
echo 'DOCKER_OPTS="-H tcp://192.168.33.10:5555"' >> /etc/default/docker
# Specify docker host for vagrant and root users
echo "export DOCKER_HOST=tcp://192.168.33.10:5555" >> /root/.bashrc
echo "export DOCKER_HOST=tcp://192.168.33.10:5555" >> /home/vagrant/.bashrc
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "base"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :private_network, ip: "192.168.33.10"
#config.vm.network :public_network
config.vm.synced_folder "./", "/codescout"
config.vm.provision "shell", inline: $script
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
end