/
Vagrantfile
30 lines (24 loc) · 1.05 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
26
27
28
29
30
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Vagrant Cloud name for Ubuntu 20.04 LTS
config.vm.box = "bento/ubuntu-20.04"
config.vm.hostname = "roundware-server"
# Configure Apache port 80 to forward to host 8080
config.vm.network "forwarded_port", guest: 80, host: 8088
# Configure manage.py runserver port 8888 to forward to host 8888
config.vm.network "forwarded_port", guest: 8888, host: 8888
config.vm.network "forwarded_port", guest: 5432, host: 15432
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "4048"]
end
config.vm.provision "shell",
inline: "export ROUNDWARE_DEV=true; cd /vagrant; ./install.sh"
if Vagrant.has_plugin?("vagrant-cachier")
# Configure cached packages to be shared between instances of the same base box.
# More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
config.cache.scope = :box
end
end