-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Vagrantfile
25 lines (22 loc) · 1.01 KB
/
Vagrantfile
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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.box_check_update = false
config.vm.synced_folder ".", "/vagrant", type: 'virtualbox'
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
config.vm.provision "shell", privileged: false, inline: <<-SHELL
set -eux -o pipefail
sudo apt-get update
sudo apt-get install --no-install-recommends -y build-essential python python3-pip git apt-transport-https curl redis-server chromium-driver python3-setuptools python3-wheel python3-dev libssl-dev
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee /etc/apt/sources.list.d/docker.list
cd /vagrant
pip3 install -r requirements.txt
CHROMEDRIVER_PATH=/usr/bin/chromedriver ./test.sh
SHELL
end