Skip to content

Instantly share code, notes, and snippets.

@fish2000
Created January 17, 2012 19:54
Show Gist options
  • Select an option

  • Save fish2000/1628470 to your computer and use it in GitHub Desktop.

Select an option

Save fish2000/1628470 to your computer and use it in GitHub Desktop.
Spin up a temporary Vagrant VirtualBox machine instance
#!/bin/sh
#
# where are we?
# courtesy http://stackoverflow.com/a/246128/298171
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
DEST=/tmp/ovst2-$$
mkdir -p $DEST
cp ${DIR}/Vagrantfile $DEST
cp ${DIR}/ovst2-provision.sh $DEST
cd $DEST
git clone git@github.com:fish2000/ost2.git ./ost2
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment