Skip to content

Instantly share code, notes, and snippets.

@djhaskin987
Forked from anonymous/gist:5c7c5134ec049b277615
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djhaskin987/a8f4546570bbfec56fb7 to your computer and use it in GitHub Desktop.
Save djhaskin987/a8f4546570bbfec56fb7 to your computer and use it in GitHub Desktop.
Create an #FPM jar using #JRuby and #Warbler
#!/bin/sh
# Main idea largely taken from http://stackoverflow.com/a/8410010/850326
prefix="${HOME}/Software" # Another viable option: /opt/
wget http://jruby.org.s3.amazonaws.com/downloads/1.7.12/jruby-bin-1.7.12.zip
unzip jruby-bin-1.7.12.zip
mkdir -p "${prefix}"
mv jruby-1.7.12 "${prefix}"
export PATH="${PATH}:${prefix}/jruby-1.17.12"
jruby -S gem install warbler fpm bundler rspec insist:0.0.5 pry stud
git clone https://github.com/jordansissel/fpm
cd fpm
warble jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment