Created
August 8, 2012 19:04
-
-
Save manveru/3297625 to your computer and use it in GitHub Desktop.
IronWorker with rvm
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/bin/bash -e | |
export HOME=/task | |
mv rvm $HOME/.rvm | |
. $HOME/.rvm/scripts/rvm | |
rvm use jruby@hello | |
ruby -ve 'puts "Hello World!"' |
This file contains hidden or 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
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