-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
25 lines (22 loc) · 741 Bytes
/
Vagrantfile
File metadata and controls
25 lines (22 loc) · 741 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Author: Yves Hwang, 03.06.2014
# http://macyves.wordpress.com
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :selenium do |selenium|
selenium.vm.box = "pfus-box"
selenium.vm.network "forwarded_port", guest: 4444, host:4444
selenium.vm.network "private_network", ip: "192.168.1.44"
selenium.vm.provider "virtualbox" do |vb|
vb.memory = 4096
vb.cpus = 4
end
$script_selenium = <<SCRIPT
service Xvfb start
service selenium-grid start
service selenium-node start
SCRIPT
selenium.vm.provision :shell, :inline => $script_selenium
end
end