Last active
August 21, 2019 01:33
-
-
Save cwyark/4db3fe0cdee642ffd655777ffc278219 to your computer and use it in GitHub Desktop.
vagrant for ubuntu 18.04
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" | |
config.vm.hostname = "old-town-road" | |
# config.vm.box_check_update = false | |
# config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network "public_network" | |
# Provider-specific configuration so you can fine-tune various | |
# backing providers for Vagrant. These expose provider-specific options. | |
# Example for VirtualBox: | |
# | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = false | |
# Customize the amount of memory on the VM: | |
vb.memory = "2048" | |
vb.cpus = 2 | |
end | |
config.disksize.size = '40GB' | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt update | |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends lubuntu-desktop | |
SHELL | |
config.vm.provision "docker" | |
config.vm.synced_folder "~/Documents", "/data", owner: "vagrant", group: "vagrant" | |
#config.ssh.private_key_path = "~/.ssh/id_rsa" | |
# | |
config.ssh.forward_agent = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment