-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
28 lines (22 loc) · 1.03 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Based on https://github.com/samvera-deprecated/samvera-vagrant
# Updated and modified for CentOS
Vagrant.configure("2") do |config|
config.vm.box = "generic/centos7"
config.vm.network :forwarded_port, guest: 3000, host: 3000 # Rails
config.vm.network :forwarded_port, guest: 8983, host: 8983 # Solr
config.vm.network :forwarded_port, guest: 8984, host: 8984 # Fedora
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
shared_dir = "/vagrant/cuirator-box/config"
config.vm.synced_folder "config", shared_dir
config.vm.provision "shell", path: "./install-scripts/bootstrap.sh"
# @todo make this optional, SQLite is fine unless using Bulkrax
config.vm.provision "shell", path: "./install-scripts/postgresql.sh"
config.vm.provision "shell", path: "./install-scripts/ruby.sh"
config.vm.provision "shell", path: "./install-scripts/fits.sh"
config.vm.provision "shell", path: "./install-scripts/cuirator.sh", args: shared_dir, privileged: false
end