-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
53 lines (42 loc) · 2.16 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.hostname = "hyku"
config.vm.box = "ubuntu/xenial64"
config.vm.box_version = "20180529.0.0"
config.vm.network :forwarded_port, guest: 80, host: 8080 # Hyku
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 = 3072
end
shared_dir = "/vagrant"
cdm_host = ""
cdm_port = ""
cdm_ssl = "N"
if !File.exists?(".vagrant/machines/default/virtualbox/action_provision")
puts "Thank you for checking out Hyku with the CdmMigrator tool"
puts ""
puts "CdmMigrator Setup"
print "ContentDM API Hostname: "
cdm_host = STDIN.gets.chomp
print "ContentDM API Port: "
cdm_port = STDIN.gets.chomp
print "ContentDM API over SSL? [y/N]: "
cdm_ssl = STDIN.gets.chomp
end
config.vm.provision "shell", path: "./install_scripts/bootstrap.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/dnsmasq.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/env-vars.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/fedora4.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/solr.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/ruby.sh", privileged: false, args: shared_dir
config.vm.provision "shell", path: "./install_scripts/passenger.sh", privileged: false, args: shared_dir
config.vm.provision "shell", path: "./install_scripts/fits.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/imagemagick.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/hyku.sh", privileged: false, args: [shared_dir, cdm_host, cdm_port, cdm_ssl]
config.vm.provision "shell", inline: "echo Finished, enjoy migrating"
end