Skip to content

Instantly share code, notes, and snippets.

@manveru
Created August 8, 2012 19:04
Show Gist options
  • Save manveru/3297625 to your computer and use it in GitHub Desktop.
Save manveru/3297625 to your computer and use it in GitHub Desktop.
IronWorker with rvm
#!/bin/bash
export HOME=/task
# install rvm
curl -L https://get.rvm.io | bash -s stable --ruby
. $HOME/.rvm/scripts/rvm
# install rubinius with hello gemset
rvm --install --create use jruby@hello
for f in /task/.rvm/log/*/*.log; do
echo "--------------------< $f >--------------------"
cat "$f"
echo "-------------------</ $f >--------------------"
done
# does it have to be here?
mv $HOME/.rvm rvm
#!/bin/bash -e
export HOME=/task
mv rvm $HOME/.rvm
. $HOME/.rvm/scripts/rvm
rvm use jruby@hello
ruby -ve 'puts "Hello World!"'
runtime 'binary'
exec 'hi.sh'
file 'build.sh'
build 'bash build.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment