forked from dgraph-io/ratel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
27 lines (24 loc) · 879 Bytes
/
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
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
######
# Vagrant solution to quickly test Linux CI environment
# Instructions:
# vagrant up && vagrant ssh
# pushd ~/ratel/client/ && npm install --legacy-peer-deps && popd
# cd ratel && make test
############
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"
config.vm.hostname = "ratel.test"
# use rsync to avoid mac vs linux node_modules and symlink issues
config.vm.synced_folder ".", "/home/vagrant/ratel", type: "rsync",
rsync__exclude: ["./client/node_modules"]
# give some memory for npm install
config.vm.provider "virtualbox" do |vbox|
vbox.memory = 2048
vbox.cpus = 2
end
# install docker, docker-compose, nodejs, puppeteer requirements
config.vm.provision "shell", path: "./scripts/provision.sh"
config.vm.provision "shell", inline: "usermod -aG docker vagrant"
end