Skip to content

Instantly share code, notes, and snippets.

@bbingju
Last active June 26, 2019 09:13
Show Gist options
  • Save bbingju/9f36ef2f0e01d33c43a2bcc1f22134eb to your computer and use it in GitHub Desktop.
Save bbingju/9f36ef2f0e01d33c43a2bcc1f22134eb to your computer and use it in GitHub Desktop.
Vagrantfile for development (git, emacs, global)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.synced_folder "~/Dropbox", "/home/vagrant/Dropbox"
config.vm.synced_folder "~/shared", "/home/vagrant/shared"
config.vm.provider "virtualbox" do |vb|
vb.name = "bionic64"
# vb.gui = true
vb.memory = "2048"
end
$script = <<-SCRIPT
sudo sed 's/archive.ubuntu.com/mirror.kakao.com/' -i /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y upgrade
git clone https://github.com/bbingju/my-scripts.git
pushd my-scripts
./bootstrap-ubuntu
popd
git clone https://github.com/bbingju/.emacs.d.git
sudo apt remove texlive
sudo apt autoremove
rm -rf ./my-scripts
SCRIPT
config.vm.provision "shell", inline: $script, privileged: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment