Skip to content

Instantly share code, notes, and snippets.

@msimonin
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msimonin/fa502fa74f33ae024ea4 to your computer and use it in GitHub Desktop.
Save msimonin/fa502fa74f33ae024ea4 to your computer and use it in GitHub Desktop.
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