Skip to content

Instantly share code, notes, and snippets.

@DevJulianSalas
Last active January 12, 2018 14:09
Show Gist options
  • Save DevJulianSalas/afe4d3338d9b102e8c4bd010063547b7 to your computer and use it in GitHub Desktop.
Save DevJulianSalas/afe4d3338d9b102e8c4bd010063547b7 to your computer and use it in GitHub Desktop.
Basic Vagrantfile setup to run ubuntu xenial with some port and shared folder configuration.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
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 = "700"
vb.name = "here_box_name_virtualbox"
end
# configura los puertos para leer desde fuera de la maquina
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.network "forwarded_port", guest: 3306, host: 3306
#compartir archivos con la maquina
config.vm.synced_folder ".", "/vagrant"
#set up bridge network
config.vm.network "public_network", ip: "192.168.0.10"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment