Note that the snapshot version that I install in this video is already out of date. Make sure to use the latest snapshot URL in the script below.
First, install vagrant, then run
vagrant init to get a
Vagrantfile in the current directory. Then you can change it to:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.ssh.pty = true
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y git clang libicu-dev
tar xzvf INSERT_SNAPSHOT_FILENAME
echo "export PATH=/home/vagrant/INSERT_SNAPSHOT_DIR/usr/bin:$PATH" >> ~/.profile
# this workaround was only necessary in the 3/16 snapshot. Later snapshots have fixed the issue.
echo "export LD_LIBRARY_PATH=/home/vagrant/INSERT_SNAPSHOT_DIR/usr/lib/swift/linux/:$LD_LIBRARY_PATH" >> ~/.profile