-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
55 lines (40 loc) · 1.63 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
54
55
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "NeroReflex/Gishiki"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network "public_network"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = false
vb.name = "Gishiki"
# Customize the amount of memory on the VM:
vb.memory = "512"
# Avoid ubuntu network problems at boot
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
# Limit CPU usage
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
# Open and forward port for admin tools
config.vm.network "forwarded_port", guest: 88, host: 8088
end
# Enable USB Controller on VirtualBox
#config.vm.provider "virtualbox" do |vb|
# vb.customize ["modifyvm", :id, "--usb", "on"]
# vb.customize ["modifyvm", :id, "--usbehci", "on"]
#end
###############################################################
config.vm.provision "shell", inline: <<-SHELL
composer self-update
# link volume to home user folder
ln -s /vagrant Gishiki
# installing the framework
cd /vagrant
composer install
SHELL
end