Home

Awesome

Version-stable Rocker images <img src="https://avatars0.githubusercontent.com/u/9100160?v=3&s=200" align="right">

<!-- badges: start -->

license Project Status: Active – The project has reached a stable, usable state and is being actively developed. Update container definition files Build & Push Core images Build & Push R devel images and RStudio daily build images

<!-- badges: end -->

Visit rocker-project.org for more about available Rocker images, configuration, and use.

Overview

This repository provides rocker/r-ver and its derived images, alternate stack to r-base, with an emphasis on reproducibility.

Compared to r-base, this stack:

Note: This repository is for R >= 4.0.0 images. For images with R <= 3.6.3, please see the rocker-versioned repository, or the shiny, geospatial, and binder repositories.

Pre-built images

The following images have been built and are available on DockerHub or GitHub Container Registry.

For more information about these container images, please see the Wiki of this repository.

Image list

Check the Rocker project site for the list of images.

Tags

Check the Wiki for the list of tags.

Spacial tags for daily builds

There are also special tags that are not listed in the wiki, devel. The GitHub Actions workflow build and push these images daily.

Spacial tags for geospatial toolkit

rocker/geospatial:dev-osgeo is special image that differ slightly from the regular rocker/geospatial.

Modifying and extending images

Check the Rocker project site for common methods for Rocker images.

Install R packages

Please install R packages from source using the install.packages() R function or the install2.r script, and use apt only to install necessary system libraries (e.g. libxml2). Do not use apt install r-cran-* to install R packages.

If you would prefer to install only the latest verions of packages from pre-built binaries using apt, consider using r-base or rocker/r-bspm instead.

Rocker scripts

The Docker images built from this repository describe the software installation method in standalone scripts rather than directly in the Dockerfiles. These files are under the scripts directory, and these files are copied in all Docker images, under a top-level /rocker_scripts directory. This allows users to extend images by selecting additional modules to install on top of any pre-built images.

For instance, if one wishes to install Shiny Server on top of a base of rocker/rstudio:4.0.0, one could write a simple Dockerfile as follows:

FROM rocker/rstudio:4.0.0
RUN /rocker_scripts/install_shiny_server.sh

Install scripts can generally take a version as a first argument or ingest an environment variable to specify the version to install. So to install fixed versions, one can use either of the following syntaxes:

FROM rocker/rstudio:4.0.0
ENV SHINY_SERVER_VERSION 1.5.14.948
RUN /rocker_scripts/install_shiny_server.sh
FROM rocker/rstudio:4.0.0
RUN /rocker_scripts/install_shiny_server.sh 1.5.14.948

RStudio Server and Shiny Server are managed by the S6 supervisor system, which allows containers to manage multiple background processes gracefully.

Note: No longer support ADD= runtime triggers for installing Shiny or similar modules, which is used for R <= 3.6.3 images.

Build images

Container definition files

Dockerfiles and docker-bake.json files, which define the pre-built images, are in the dockerfiles folder and the bakefiles folder. And, these files are generated by the build scripts under the build folder.

When a new version of R or RStudio is released, GitHub Actions will automatically create a Pull Request to update these files.

Update pre-built images

Latest R version images will be built on a rolling basis; when the Dockerfiles are updated, they are immediately built by GitHub Actions.

Non-latest R version images will be built when a new R version is released. At this time, a tag and a GitHub release will also be created.

Contributing

Please check https://github.com/rocker-org/rocker/wiki/How-to-contribute.

License

The Dockerfiles and the scripts in this repository are licensed under the GPL 2 or later.