Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Snooze dev
#!/usr/bin/env bash
#
# provision Snooze on debian/ubuntu
#
sudo apt-get update
# build
sudo apt-get -y install openjdk-7-jdk maven curl git
# update alternative
sudo update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
# debian package
sudo apt-get -y install build-essential debhelper
# cassandra
echo "deb http://www.apache.org/dist/cassandra/debian 21x main" | sudo tee /etc/apt/sources.list.d/cassandra.list
gpg --keyserver pgp.mit.edu --recv-keys 4BD736A82B5C1B00
gpg --export --armor 4BD736A82B5C1B00| sudo apt-key add -
sudo apt-get update
sudo apt-get -y install cassandra
# Reminder java 7 is needed to run cassandra 2.
sudo service cassandra start
# vi customization
curl https://raw.githubusercontent.com/msimonin/vim/master/install.sh | sh
#!/usr/bin/env bash
sudo apt-get update
# build
sudo apt-get -y install curl git
# web install
curl https://raw.githubusercontent.com/snoozesoftware/snooze-deploy-localcluster/master/webinstall.sh | sh
# vi customization
curl https://raw.githubusercontent.com/msimonin/vim/master/install.sh | sh
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "dev" do |dev|
dev.vm.box = "hashicorp/precise64"
dev.vm.provision "shell", path: "provision/provision-dev.sh"
end
config.vm.define "test" do |test|
test.vm.box = "hashicorp/precise64"
test.vm.provision "shell", path: "provision/provision-test.sh"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment