Skip to content

Instantly share code, notes, and snippets.

@jinhyung
Created December 11, 2015 03:10
Show Gist options
  • Save jinhyung/f775eadca273dddb659e to your computer and use it in GitHub Desktop.
Save jinhyung/f775eadca273dddb659e to your computer and use it in GitHub Desktop.
# for all VMs of OS X (VirtualBox, VMWare, or Parallels)
Vagrant.configure(2) do |config|
config.vm.box = "puphpet/ubuntu1404-x64"
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get --assume-yes install curl clang libpython2.7 libicu52 git vim
curl -O https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz
tar zxf swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz
echo "export PATH=/home/vagrant/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin:\"${PATH}\"" >> .profile
echo "Swift has successfully installed on Linux"
SHELL
config.vm.provision "file", source: "~/.ssh/id_rsa", destination: ".ssh/id_rsa"
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment