iron-io / issues

For Iron.io services issue tracking. Public facing issue tracking for behind the scenes issues.
5 stars 0 forks source link

Java 8 support #98

Open mathieucarbou opened 10 years ago

mathieucarbou commented 10 years ago

This is quiet a blocker for us... We are heavily using Java 8 and cannot easily move to Iron.io because of that. We would need to set:

runtime 'java'
stack 'java-1.8'

For the moment, I've just successfuly tested this workaround:

worker file:

name 'my-code'
runtime 'binary'
exec 'bootstrap.sh'
file 'target/my.jar.file.jar'

bootstrap.sh

#!/bin/sh
pack="jre-8u5-linux-x64"
jre="jre1.8.0_05"
java=./${jre}/bin/java
if [ ! -f $java ]
then
    curl -s -O http://s3.amazonaws.com/<our-bucket-path>/${pack}.tar.gz
    tar xzf ${pack}.tar.gz
fi
$java -jar my.jar.file.jar $*

But this situation is not ideal since the Java 8 JRE is big and jobs take time to execute...