Skip to content

Instantly share code, notes, and snippets.

@marknorgren
Last active March 31, 2016 02:31
Show Gist options
  • Save marknorgren/51ee4ed08dc2277747d19d7f75fbaeaf to your computer and use it in GitHub Desktop.
Save marknorgren/51ee4ed08dc2277747d19d7f75fbaeaf to your computer and use it in GitHub Desktop.
  1. Install Vagrant

  2. vagrant up

  3. Vagrantfile

-- 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

Set Swift snapshot version here:

SWIFT_SNAPSHOT_DIR="swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a" SWIFT_SNAPSHOT="swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04" SWIFT_SNAPSHOT_FULL="$SWIFT_SNAPSHOT_DIR/$SWIFT_SNAPSHOT"

SWIFT_SNAPSHOT_BASE_URL="https://swift.org/builds/development/ubuntu1404/" SWIFT_SNAPSHOT_EXTENSION=".tar.gz" SWIFT_SNAPSHOT_FILE="$SWIFT_SNAPSHOT$SWIFT_SNAPSHOT_EXTENSION"

wget "$SWIFT_SNAPSHOT_BASE_URL$SWIFT_SNAPSHOT_FILE" tar xzvf $SWIFT_SNAPSHOT_FILE

echo $SWIFT_SNAPSHOT echo "export PATH=/home/vagrant/$SWIFT_SNAPSHOT/usr/bin:$PATH" >> ~/.profile

swift --version SHELL end


4. `wget https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz`


[swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz](https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment