# Run with cloud-init:
#
# #cloud-config
# runcmd:
#   - "wget https://raw.githubusercontent.com/brutasse/graphite-api/master/fpm/cloud-init.sh"
#   - "sh cloud-init.sh"

set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
apt-get -y install git ruby ruby-dev build-essential
gem install fpm
export PATH=$PATH:/usr/local/bin
echo $PATH
which fpm
git clone https://github.com/brutasse/graphite-api.git
cd graphite-api/fpm
./build-deb.sh

# Run with cloud-init:
#
# #cloud-config
# runcmd:
#   - "wget https://raw.githubusercontent.com/brutasse/graphite-api/master/fpm/cloud-init.sh"
#   - "sh cloud-init.sh"

set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
apt-get -y install git ruby ruby-dev build-essential
gem install fpm --no-rdoc --no-ri
export PATH=$PATH:/usr/local/bin
git clone https://github.com/brutasse/graphite-api.git
cd graphite-api/fpm
./build-deb.sh

Disable rdoc and ri, remove path debugging
Disable rdoc and ri, remove path debugging
