-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
29 lines (21 loc) · 899 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
28
29
# -*- mode: ruby -*-
$script = <<SCRIPT
export DEBCONF_FRONTEND=noninteractive
wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
echo "deb http://pkg.jenkins-ci.org/debian-stable binary/" > /etc/apt/sources.list.d/jenkins.list
apt-get update -qq
apt-get install -y jenkins
apt-get install -y yasm build-essential
apt-get install -y python-virtualenv python-pip git libyaml-dev python-dev
pip install --upgrade jenkins-job-builder
jenkins-jobs --conf /vagrant/jenkins_jobs/jenkins_jobs.ini update /vagrant/jenkins_jobs
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision :shell, :inline => $script
# forward docker ports
[80, 443, 8080].each do |port|
config.vm.network :forwarded_port, :host => 3000 + port, :guest => port
end
end