Created
December 15, 2015 18:41
-
-
Save iancullinane/3cca90f137863dd2ee23 to your computer and use it in GitHub Desktop.
Base Vagrant file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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| | |
hostname = "docker-box" | |
# base box | |
config.vm.box = "ubuntu/trusty64" | |
#config.ssh.forward_agent = true | |
# network stuff | |
config.vm.network "forwarded_port", guest: "80", host: "8020" | |
config.vm.network "private_network", ip: "192.168.33.200" | |
config.vm.hostname = "training-box" | |
# sync a folder to have available on host editor | |
config.vm.synced_folder "/Users/icullinane/dev/turbine-training/dev/", "/home/vagrant/dev" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo curl https://get.docker.com | bash; | |
sudo wget https://bootstrap.pypa.io/get-pip.py; | |
python get-pip.py; | |
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -; | |
sudo apt-get install -y nodejs; | |
SHELL | |
#run a script to provision | |
#config.vm.provision "shell", path: "scripts/base.sh" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment