mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 06:32:34 +01:00
8ccac1cf7d
* Move bootstrap.sh to bin and add cleanup script * Add api for serving media files * refactor
36 lines
1.0 KiB
Ruby
36 lines
1.0 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "exane/ubuntu"
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
v.memory = 2048
|
|
v.cpus = 4
|
|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
|
|
end
|
|
|
|
# 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
|
|
source /home/vagrant/.nvm/nvm.sh
|
|
nvm install node
|
|
SHELL
|
|
|
|
# Install lamp
|
|
config.vm.provision :shell, path: "bin/bootstrap.sh"
|
|
|
|
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
|
|
config.vm.network "forwarded_port", guest: 3306, host: 3306, host_ip: "127.0.0.1"
|
|
|
|
config.ssh.forward_agent = true
|
|
end
|