-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
22 lines (18 loc) · 827 Bytes
/
Vagrantfile
File metadata and controls
22 lines (18 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'bento/ubuntu-20.04'
config.vm.host_name = 'echo'
@ip_address = '192.168.33.10'
config.vm.network 'private_network', ip: @ip_address
# When connecting through SSH forward port 4444 on the vagrant box to 4444 on the host
config.ssh.extra_args = ['-R', '4444:localhost:4444']
config.vm.provision 'shell', inline: <<-SHELL
apt-get update
apt install -y build-essential libxml2-dev libxslt1-dev zlib1g-dev firefox-geckodriver ruby ruby-dev
gem install bundler
cd /vagrant && bundle install
# Setup the CAPYBARA_SERVER_HOST so you don't have to think about the IP address when using the selenium_remote driver
echo 'CAPYBARA_SERVER_HOST=#{@ip_address}' > /home/vagrant/.pam_environment
SHELL
end