File: cloud-init.sh

package info (click to toggle)
graphite-api 1.1.3-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 752 kB
  • sloc: python: 7,757; sh: 215; makefile: 150
file content (17 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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