Created
January 10, 2014 18:01
-
-
Save justenwalker/8359314 to your computer and use it in GitHub Desktop.
Vagrant file for testing graphite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<eos | |
#! /bin/bash | |
REQUIREMENTS="Django<1.7" | |
# Prerequisites | |
apt-get update | |
apt-get -y install build-essential libffi-dev python-dev python-pip | |
# Before Install | |
apt-get -y install libcairo2-dev | |
cd /vagrant | |
mkdir -p storage/log/webapp | |
mkdir -p storage/ceres | |
mkdir -p storage/whisper | |
# Install | |
pip install "https://github.com/graphite-project/ceres/tarball/master" | |
pip install $REQUIREMENTS | |
pip install numpy cairocffi | |
pip install whisper django-tagging pytz pyparsing==1.5.7 "http://cairographics.org/releases/py2cairo-1.8.10.tar.gz" | |
# Script | |
cd /vagrant/webapp | |
PYTHONPATH=. python manage.py test --settings=tests.settings | |
eos | |
# 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.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :forwarded_port, guest: 8083, host: 8083 | |
config.vm.provision "shell", inline: $script | |
end |
@jroyalty you need place this into the graphite-web
git repository. Otherwise it won't find the webapp folder.
I got a Vagrantfile into the main graphite-web repository recently if you want to give that a try. It won't auto-start graphite for you, since its for development - but it will make a box that has all the required prerequisites for running it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gave this a try, but got an error: