47 lines
1.8 KiB
Ruby
47 lines
1.8 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
|
# configures the configuration version (we support older styles for
|
|
# backwards compatibility). Please don't change it unless you know what
|
|
# you're doing.
|
|
Vagrant.configure(2) do |config|
|
|
# The most common configuration options are documented and commented below.
|
|
# For a complete reference, please see the online documentation at
|
|
# https://docs.vagrantup.com.
|
|
|
|
config.vm.box = "ubuntu/trusty64"
|
|
|
|
# On associe le port 80 dans la machine virtuelle avec le port 8080 de notre
|
|
# ordinateur, et le port 8000 avec le port 8000.
|
|
config.vm.network :forwarded_port, guest: 80, host: 8080
|
|
config.vm.network :forwarded_port, guest: 8000, host: 8000
|
|
|
|
# Create a private network, which allows host-only access to the machine
|
|
# using a specific IP.
|
|
# config.vm.network "private_network", ip: "192.168.33.10"
|
|
|
|
# Provider-specific configuration so you can fine-tune various
|
|
# backing providers for Vagrant. These expose provider-specific options.
|
|
# Example for VirtualBox:
|
|
#
|
|
# config.vm.provider "virtualbox" do |vb|
|
|
# # Display the VirtualBox GUI when booting the machine
|
|
# vb.gui = true
|
|
#
|
|
# # Customize the amount of memory on the VM:
|
|
# vb.memory = "1024"
|
|
# end
|
|
#
|
|
# View the documentation for the provider you are using for more
|
|
# information on available options.
|
|
|
|
# Enable provisioning with a shell script. Additional provisioners such as
|
|
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
|
# documentation for more information about their specific syntax and use.
|
|
# config.vm.provision "shell", inline: <<-SHELL
|
|
# sudo apt-get update
|
|
# sudo apt-get install -y apache2
|
|
# SHELL
|
|
config.vm.provision :shell, path: "provisioning/bootstrap.sh"
|
|
end
|