~charmers/charms/precise/opentsdb/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Robert Collins
  • Date: 2012-06-26 03:48:13 UTC
  • Revision ID: robertc@robertcollins.net-20120626034813-huidbycs7baegu0j
Workingish charm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Here do anything needed to install the service
3
3
# i.e. apt-get install -y foo  or  bzr branch http://myserver/mycode /srv/webroot
4
4
 
5
 
apt-get install -y opentsdb
 
5
set -eux # -x for verbose logging to juju debug-log
 
6
juju-log "Installing build dependencies"
 
7
apt-get install -y build-essential automake autoconf gnuplot default-jdk git
 
8
juju-log "Using git to clone opentsdb"
 
9
cd /opt
 
10
[ -d opentsdb ] && (cd opentsdb && git pull) || git clone git://github.com/stumbleupon/opentsdb.git
 
11
juju-log "building."
 
12
cd opentsdb
 
13
./build.sh
 
14
tsdtmp=${TMPDIR-'/tmp'}/tsd
 
15
# For best performance, make sure 
 
16
mkdir -p "$tsdtmp"