/java-r-buildpack

Java + R Buildpack For Cloud Foundry

Primary LanguageJavaApache License 2.0Apache-2.0

Cloud Foundry R Buildpack

A 'R' buildpack for CloudFoundry that includes Rserve for supporting remote callers using an Rserve client library available in many languages. This is a fork of the heroku-buildpack-r with modifications made mainly to the compile script to enable an easier path for integration with the CloudFoundry java-buildpack when using the heroku-buildpack-multi.

Example Java Usage

$ cd ~/workspace/java-r-buildpack/test/java
$ mvn install
$ cf push --no-route

Example Ruby Usage

$ cd ~/workspace/java-r-buildpack/test/ruby
$ cf push
$ open http://rrubyapp.10.244.0.34.xip.io

Caveats

R may fail to install when pushing an app to CF using a bosh-lite warden stemcell due to the following error:

libreadline.so.5: cannot open shared object file: No such file or directory

This happens because the R binary relies on an older version of libreadline shared library than the one that comes installed on the stemcell. Rather than installing the older version onto the root partition, to get around this I created a symbolic link that maps the one R is looking for to the one on the stemcell:

root:/var/vcap/packages/rootfs_lucid64/lib# ln -n ./libreadline.so.6 libreadline.so.5