Skip to content

Instantly share code, notes, and snippets.

@TheWaWaR
Last active April 3, 2016 05:48
Show Gist options
  • Save TheWaWaR/893750918dce602b0d4f0bb5743c6691 to your computer and use it in GitHub Desktop.
Save TheWaWaR/893750918dce602b0d4f0bb5743c6691 to your computer and use it in GitHub Desktop.
Shell script for install graphite-web
# Some problem tobe solved!
# =========================
# 1. Can you setup the whole system?
# 2. Is the benchmark good enough?
# 3. Can this auth by user/password?
user=$1
GRAPHITE_ROOT=/opt/graphite
# mkdir -p /opt/graphite/data
chown -R ${user}:${user} ${GRAPHITE_ROOT}
virtualenv ${GRAPHITE_ROOT}/venv
source ${GRAPHITE_ROOT}/venv/bin/activate
pip install pytz
pip install django==1.4
pip install django-tagging==0.3.1
pip install https://github.com/graphite-project/ceres/tarball/master
pip install whisper
pip install carbon \
--install-option="--prefix=/opt/graphite"
pip install graphite-web \
--install-option="--prefix=/opt/graphite"
PYTHONPATH=$GRAPHITE_ROOT/webapp django-admin.py syncdb --settings=graphite.settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment