Created
November 20, 2013 10:43
-
-
Save rasputnik/7561122 to your computer and use it in GitHub Desktop.
how to build a statsd RPM using FPM.
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
# get required build bits | |
yum install -y jdk jruby nodejs rpm-build | |
# setup jruby (add /opt/jruby/bin to your path) | |
jgem install fpm | |
# checkout statsd | |
unset https_proxy | |
git clone https://github.com/etsy/statsd.git | |
cd statsd | |
# here's the command, comments refer to each line: | |
# turn a directory into an rpm called statsd | |
# it's noarch and the rpm should extract to /opt/statsd | |
# include the files and folders listed | |
fpm -s dir -t rpm -n statsd \ | |
-a noarch --prefix /opt/statsd \ | |
lib bin backends utils docs *.md *.js | |
# this will plop out an RPM into the directory you're on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment