-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
54 lines (43 loc) · 1.93 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
# Enter Your Github API Token Below.
# If not entered, you must manually run composer to finish the installation.
# See http://devdocs.magento.com/guides/v1.0/install-gde/trouble/tshoot_rate-limit.html
githubToken = ""
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.
# box name. Any box from vagrant share or a box from a custom URL.
config.vm.box = "ubuntu/trusty64"
# box modifications, including memory limits and box name.
config.vm.provider "virtualbox" do |vb|
vb.name = "Magento2 Vagrant"
vb.memory = 4096
vb.cpus = 2
end
## IP to access box
config.vm.network "private_network", ip: "192.168.33.10"
# If you want to share an additional folder, (such as a project root).
# If you experience slow throughput or performance on the folder share, you
# might have to use an OS specific share.
#
# Default Share:
# config.vm.synced_folder "../data", "/vagrant_data"
#
# NFS Share, Good for Unix based OS (Mac OSX, Linux):
# config.vm.synced_folder ".", "/vagrant", type: "nfs"
#
# SMB Share, good for Windows:
# (If experiencing issues, upgrade PowerShell to V 3.0)
# config.vm.synced_folder ".", "/vagrant", type: "smb"
config.vm.synced_folder "./magento2", "/var/www/html/magento2/", :mount_options => ["dmode=777", "fmode=777"]
## Bootstrap script to provision box. All installation methods can go here.
config.vm.provision "shell" do |s|
s.path = "bootstrap.sh"
s.args = [githubToken]
end
# If you need to forward ports, you can use this command:
# config.vm.network "forwarded_port", guest: 80, host: 8080
end