Skip to content

Instantly share code, notes, and snippets.

@demian0311
Created February 27, 2014 13:22
Show Gist options
  • Save demian0311/9249868 to your computer and use it in GitHub Desktop.
Save demian0311/9249868 to your computer and use it in GitHub Desktop.
demian ~/boxes/foobox cat bootstrap.sh
#!/usr/bin/env bash
apt-get update
apt-get upgrade
apt-get install -y apache2
apt-get install -y vim
apt-get install -y git
#apt-get install -y tomcat7
apt-get install -y openjdk-7-jdk
rm -rf /var/www
ln -fs /vagrant /var/www
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
export PATH=$JAVA_HOME/bin:$PATH
mkdir -p /foobox
cd /foobox
# Grab Hystrix
if [ ! -d "/foobox/Hystrix" ]; then
git clone https://github.com/Netflix/Hystrix.git
fi
# Grab Nextgen
if [ ! -d "/foobox/nextgen" ]; then
git clone https://github.com/demian0311/nextgen.git
fi
# Run Hystrix
cd /foobox/Hystrix/hystrix-dashboard
../gradlew jettyRun &
# go to: http://localhost:7979/hystrix-dashboard
# Run Nextgen
cd /foobox/nextgen
./grailsw run-app &
# TODO: grails app isn't starting
# TODO: kick off the traffic generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment