NeroReflex/Gishiki

View on GitHub
Vagrantfile

Summary

Maintainability
Test Coverage
# -*- 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