forked from intrigueio/intrigue-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
35 lines (28 loc) · 857 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
28
29
30
31
32
33
34
35
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.define "intrigue-core" do |x|
# install all deps
x.vm.provision :shell, privileged: false, inline: <<-SHELL
~/core/util/bootstrap.sh development
SHELL
# run setup and start the service
x.vm.provision "shell", privileged: false, inline: <<-SHELL
source ~/.bash_profile
cd ~/core
bundle install
bundle exec rake setup
bundle exec rake db:migrate
rbenv rehash
foreman start
SHELL
x.vm.synced_folder ".", "/home/vagrant/core"
x.vm.hostname = "intrigue-core"
x.vm.network :private_network, ip: "10.0.0.10"
x.vm.network "forwarded_port", guest: 7777, host: 7777
x.vm.provider :virtualbox do |vb|
vb.name = "core-dev"
vb.memory = 8096
vb.cpus = 2
end
end
end