Update Vagrantfile
The Vagrantfile had been mostly ignored until now. Update it with the beginnings of variables for box name/url as well as some of the bits necessary for install bits under Ubuntu. This will eventually be extended to support other distros as well.
This commit is contained in:
parent
cf06cd12d4
commit
af2d893911
|
@ -1,11 +1,20 @@
|
|||
# encoding: UTF-8
|
||||
|
||||
GIFTWRAP_MANIFEST = 'manifest.yml'
|
||||
GIFTWRAP_BUILDBOX_NAME = 'ursula-precise'
|
||||
GIFTWRAP_BUILDBOX_URL = 'http://apt.openstack.blueboxgrid.com/vagrant/ursula-precise.box'
|
||||
|
||||
Vagrant.configure('2') do |config|
|
||||
config.vm.box = 'hashicorp/precise64'
|
||||
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 build-essential ruby1.9.1-dev -y
|
||||
apt-get install -y build-essential ruby1.9.1-dev git python-pip python-dev python-virtualenv libxml2-dev libxslt-dev libffi-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|
|
||||
|
|
Loading…
Reference in New Issue