Skip to content
Prev 7349 / 21312 Next

[Bioc-devel] Docker granularity: containers for individual R packages, running on a normal R installation?

On 04/14/2015 01:17 PM, Wolfgang Huber wrote:
The part of your question that challenged me was to 'run under a ?normal?, 
system-installed R', for which I don't have any meaningful help to offer. 
Probably the following is not what you were looking for...

There was no explicit mention of this in Sean's answer, so I'll point to

   http://bioconductor.org/help/docker/

A more typical use is that R is on the docker container, maybe starting the 
docker container in such a way that you have access to your non-docker file system.

I might run the devel version of R / Bioc (the devel version was a bit stale 
recently; I'm not sure if it is updated) with

   docker run -ti bioconductor/devel_sequencing R

(the first time this will be painful, but the second time instantaneous). The 
image comes with all the usual tools (e.g., compilers) and all of the packages 
with a 'Sequencing' biocViews; most additional packages can be installed w/out 
problem.

If there were complex dependencies, then one might start with one of the simpler 
containers, add the necessary dependencies, save the image, and distribute it, 
as outlined at

   http://bioconductor.org/help/docker/#modifying-the-images

I bet that many of the common complexities are already on the image. A fun 
alternative to running R is to run RStudio Server on the image, and connect to 
it via your browser

   docker run -p 8787:8787 bioconductor/devel_base

(point your browser to http://localhost:8787 and log in with username/password 
rstudio/rstudio).

I guess this also suggests a way to interact with some complicated docker-based 
package from within R on another computer, serving the package up as some kind 
of a web service.

Martin