Created
July 5, 2014 11:32
-
-
Save omribahumi/64d6cfcbe955bbc3ccac to your computer and use it in GitHub Desktop.
Vagrantfile to reproduce https://github.com/skynetservices/skydns/issues/23
This file contains 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 : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise-server-cloudimg-amd64" | |
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: "172.16.0.2", netmask: "255.255.255.0" | |
config.vm.provision :shell do |shell| | |
shell.inline = <<-EOS | |
set -ex | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get install -y -q git | |
wget http://golang.org/dl/go1.3.linux-amd64.tar.gz | |
tar xvfz go1.3.linux-amd64.tar.gz | |
export GOROOT="/home/vagrant/go" | |
export GOPATH="/home/vagrant/gopath" | |
export PATH="${PATH}:${GOROOT}/bin" | |
mkdir -p "$GOPATH" | |
git clone https://github.com/miekg/exdns/ | |
cd exdns/reflect | |
go get -d | |
go build | |
chown -R vagrant:vagrant /home/vagrant | |
ip address add 172.16.0.3/24 broadcast 172.16.0.255 dev eth1 | |
EOS | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment