Created
September 15, 2019 19:28
-
-
Save patheard/665b125bb522352d5d63df2fe9f363ed to your computer and use it in GitHub Desktop.
ubuntu/xenial64
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 : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
# Expose port 80 on guest vis port 8080 on host | |
config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | |
# Set guest IP address on host network | |
config.vm.network "private_network", ip: "192.168.10.101" | |
# Additional folders to sync between host and guest | |
config.vm.synced_folder "D:\\Development\\Projects\\DTF", "/home/vagrant/DTF" | |
# Config VM | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = 'trusty-dev' | |
vb.memory = 4096 | |
vb.cpus = 1 | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
end | |
# Install git | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
apt-get install --install-recommends linux-generic-lts-xenial | |
apt-get install -y git | |
SHELL | |
# Install Docker | |
config.vm.provision :docker | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment