Created
December 18, 2015 17:10
-
-
Save mightystoosh/f20aeceec7595edef961 to your computer and use it in GitHub Desktop.
This file contains hidden or 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| | |
# base box | |
config.vm.box = "ubuntu/trusty64" | |
config.ssh.forward_agent = true | |
# network stuff | |
config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
config.vm.network "private_network", ip: "192.168.33.20" | |
config.vm.hostname = "docker-box" | |
# sync a folder to have available on host editor | |
config.vm.synced_folder "/Users/skarp/GitHub/", "/home/vagrant/" | |
#run a script to provision | |
# config.vm.provision "docker" do |d| | |
# d.build_image "/vagrant/app" | |
# end | |
config.vm.provision :shell, inline: "sudo wget -qO- https://get.docker.com/ | sh" | |
config.vm.provision 'shell', inline: "sudo groupadd docker > /dev/null 2>&1 || : " | |
config.vm.provision 'shell', inline: "sudo gpasswd -a vagrant docker" | |
#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