-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathVagrantfile
23 lines (19 loc) · 853 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
# encoding: UTF-8
GIFTWRAP_MANIFEST = ENV['GIFTWRAP_MANIFEST'] || 'manifest.yml'
GIFTWRAP_BUILDBOX_NAME = ENV['GIFTWRAP_BUILDBOX_NAME'] || 'ursula-precise'
GIFTWRAP_BUILDBOX_URL = ENV['GIFTWRAP_BUILDBOX_URL'] || 'http://apt.openstack.blueboxgrid.com/vagrant/ursula-precise.box'
Vagrant.configure('2') do |config|
config.vm.box = GIFTWRAP_BUILDBOX_NAME
config.vm.box_url = GIFTWRAP_BUILDBOX_URL
config.vm.provision 'shell', inline: <<-EOF
apt-get update
apt-get install -y build-essential ruby1.9.1-dev git python-pip python-dev python-virtualenv libxml2-dev libxslt-dev libffi-dev libmysqlclient-dev libpq-dev libsqlite3-dev
gem install --no-ri --no-rdoc fpm
cd /vagrant
python setup.py install
giftwrap build -m #{GIFTWRAP_MANIFEST}
EOF
config.vm.define 'giftwrap' do |c|
c.vm.host_name = 'giftwrap'
end
end