This are the worker images that will be used in DockerParallel to provide the worker to the cluster. There are two images, namely r-base-worker and bioc-worker. The former one is based on the r-base image and the latter is based on the bioconductor image. The worker image accepts the following environment variables on startup:
All images supports the R function runPerContainer
which can be used to run the R code in a container once when all workers execute the function once.
To build the r-base worker image, run
docker build -t r-base-worker . -f Dockerfile_rbase_LATEST
To build bioconductor worker, run
docker build -t bioc-worker . -f Dockerfile_bioc_RELEASE_3_12
To run the doRedis backed r-base worker container
docker run -it --env queueName=jobs --env serverPassword=123456 --env workerNum=2 --env backend=doRedis r-base-worker
To run the RedisParam backed r-base worker container
docker run -it --env queueName=jobs --env serverPassword=123456 --env workerNum=2 --env backend=RedisParam r-base-worker
To add an R package to the container
docker run -it --env queueName=jobs --env serverPassword=123456 --env workerNum=2 --env RPackages=BiocParallel --env backend=doRedis r-base-worker
If you want to test the server and the worker on the same machine, you have to set the network mode to "host" to allow the communication between the server and worker. For example
docker run -it --env queueName=jobs --env serverIp=localhost --env serverPort=6666 --env serverPassword=123456 --env workerNum=2 --env backend=doRedis --network="host" r-base-worker
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.