Created
April 14, 2014 22:40
-
-
Save RichardBarrell/10687824 to your computer and use it in GitHub Desktop.
Typical Lucid Vagrantfile
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 : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "lucid64" | |
config.vm.box_url = "http://files.vagrantup.com/lucid64.box" | |
config.vm.define :lucid do |t| | |
end | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
config.vm.network :private_network, :ip => "192.168.56.10" | |
config.vm.synced_folder "./", "/foo", nfs: true | |
# config.vm.provider :virtualbox do |vb| | |
# vb.customize ["modifyvm", :id, "--memory", "1024"] | |
# end | |
config.vm.provision :shell, :inline => <<-'eos' | |
echo "Any shell script that you like goes here." | |
echo "The host machine will show up as 10.0.2.2." | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -y upgrade | |
apt-get install -y --no-install-recommends build-essential git-core # etc | |
eos | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment