Couple of tweaks on Vagrantfile used for acceptance testing
This commit is contained in:
parent
a6c95bff50
commit
6bbc7c5e91
1 changed files with 7 additions and 2 deletions
9
spec/Vagrantfile
vendored
9
spec/Vagrantfile
vendored
|
@ -5,17 +5,22 @@ Vagrant.require_plugin 'vagrant-lxc'
|
||||||
Vagrant.require_plugin 'vagrant-cachier'
|
Vagrant.require_plugin 'vagrant-cachier'
|
||||||
|
|
||||||
ENV['BOX_NAME'] ||= 'quantal64'
|
ENV['BOX_NAME'] ||= 'quantal64'
|
||||||
|
puts "Running specs using #{ENV['BOX_NAME']} box"
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vm.box = ENV['BOX_NAME']
|
config.vm.box = ENV['BOX_NAME']
|
||||||
config.vm.hostname = 'lxc-test-box'
|
config.vm.hostname = 'lxc-test-box'
|
||||||
|
config.vm.network :forwarded_port, guest: 80, host: 8080
|
||||||
|
|
||||||
config.cache.enable :apt
|
config.cache.auto_detect = true
|
||||||
|
|
||||||
|
config.vm.provider :lxc do |lxc|
|
||||||
|
lxc.sudo_wrapper = '/usr/bin/lxc-vagrant-wrapper'
|
||||||
|
end
|
||||||
|
|
||||||
config.vm.provision :shell,
|
config.vm.provision :shell,
|
||||||
inline: 'mkdir -p /vagrant/tmp && echo -n "Provisioned" > /vagrant/tmp/provisioning'
|
inline: 'mkdir -p /vagrant/tmp && echo -n "Provisioned" > /vagrant/tmp/provisioning'
|
||||||
|
|
||||||
config.vm.network :forwarded_port, guest: 80, host: 8080
|
|
||||||
config.vm.provision :shell,
|
config.vm.provision :shell,
|
||||||
inline: 'sudo apt-get install apache2 -y'
|
inline: 'sudo apt-get install apache2 -y'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue