2016-12-14 18:51:23 +01:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
2017-04-18 09:23:55 +02:00
|
|
|
config.vm.box = "exane/ubuntu"
|
2016-12-14 18:51:23 +01:00
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.memory = 2048
|
2017-04-18 09:23:55 +02:00
|
|
|
v.cpus = 4
|
2017-01-07 09:38:26 +01:00
|
|
|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
|
2016-12-14 18:51:23 +01:00
|
|
|
end
|
2017-02-19 01:55:33 +01:00
|
|
|
|
2016-12-14 18:51:23 +01:00
|
|
|
# Install nvm
|
|
|
|
config.vm.provision "nvm",
|
|
|
|
type: "shell",
|
|
|
|
privileged: false,
|
|
|
|
inline: <<-SHELL
|
|
|
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | sh
|
2017-04-18 09:23:55 +02:00
|
|
|
source /home/vagrant/.nvm/nvm.sh
|
|
|
|
nvm install node
|
2016-12-14 18:51:23 +01:00
|
|
|
SHELL
|
2017-02-19 01:55:33 +01:00
|
|
|
|
2016-12-14 18:51:23 +01:00
|
|
|
# Install lamp
|
2017-04-18 09:23:55 +02:00
|
|
|
config.vm.provision :shell, path: "bin/bootstrap.sh"
|
2016-12-14 18:51:23 +01:00
|
|
|
|
|
|
|
config.vm.provision :shell, inline: "apt-get install -y unzip"
|
|
|
|
|
|
|
|
# Install composer
|
|
|
|
config.vm.provision :shell, inline: "curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer"
|
|
|
|
|
|
|
|
config.vm.network "forwarded_port", guest: 80, host: 3000
|
2017-04-18 09:23:55 +02:00
|
|
|
config.vm.network "forwarded_port", guest: 3306, host: 3306, host_ip: "127.0.0.1"
|
2016-12-14 18:51:23 +01:00
|
|
|
|
|
|
|
config.ssh.forward_agent = true
|
|
|
|
end
|