{"id":14069759,"url":"https://github.com/rocker-org/rocker-versioned2","last_synced_at":"2025-05-15T09:06:39.823Z","repository":{"id":37008304,"uuid":"230339464","full_name":"rocker-org/rocker-versioned2","owner":"rocker-org","description":"Run current \u0026 prior versions of R using docker. rocker/r-ver, rocker/rstudio, rocker/shiny, rocker/tidyverse, and so on.","archived":false,"fork":false,"pushed_at":"2025-05-11T10:47:53.000Z","size":1677,"stargazers_count":445,"open_issues_count":90,"forks_count":192,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-15T09:06:37.270Z","etag":null,"topics":["docker","r"],"latest_commit_sha":null,"homepage":"https://rocker-project.org","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rocker-org.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-26T23:09:26.000Z","updated_at":"2025-05-11T10:47:55.000Z","dependencies_parsed_at":"2023-02-17T21:30:58.661Z","dependency_job_id":"e7c3c422-cb5f-4f6f-bbb8-73c050a5e46f","html_url":"https://github.com/rocker-org/rocker-versioned2","commit_stats":{"total_commits":1177,"total_committers":37,"mean_commits":31.81081081081081,"dds":0.4299065420560748,"last_synced_commit":"02cd56d9fb5c414b792c4c80a12adab5b9712d43"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocker-org%2Frocker-versioned2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocker-org%2Frocker-versioned2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocker-org%2Frocker-versioned2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocker-org%2Frocker-versioned2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocker-org","download_url":"https://codeload.github.com/rocker-org/rocker-versioned2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310515,"owners_count":22049469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","r"],"created_at":"2024-08-13T07:07:12.018Z","updated_at":"2025-05-15T09:06:39.775Z","avatar_url":"https://github.com/rocker-org.png","language":"Shell","funding_links":[],"categories":["置顶","Shell"],"sub_categories":["2、智能开发与部署"],"readme":"# Version-stable Rocker images \u003cimg src=\"https://avatars0.githubusercontent.com/u/9100160?v=3\u0026s=200\" align=\"right\"\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![license](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://opensource.org/licenses/GPL-2.0)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Update container definition files](https://github.com/rocker-org/rocker-versioned2/actions/workflows/dockerfiles.yml/badge.svg)](https://github.com/rocker-org/rocker-versioned2/actions/workflows/dockerfiles.yml)\n[![Build \u0026 Push Core images](https://github.com/rocker-org/rocker-versioned2/actions/workflows/core.yml/badge.svg)](https://github.com/rocker-org/rocker-versioned2/actions/workflows/core.yml)\n[![Build \u0026 Push R devel images and RStudio daily build images](https://github.com/rocker-org/rocker-versioned2/actions/workflows/devel.yml/badge.svg)](https://github.com/rocker-org/rocker-versioned2/actions/workflows/devel.yml)\n\n\u003c!-- badges: end --\u003e\n\nVisit [rocker-project.org](https://rocker-project.org) for more about available Rocker images, configuration, and use.\n\n## Overview\n\nThis repository provides [`rocker/r-ver`](https://hub.docker.com/r/rocker/r-ver) and its derived images,\nalternate stack to [`r-base`](https://hub.docker.com/_/r-base),\nwith an emphasis on reproducibility.\n\nCompared to `r-base`, this stack:\n\n- Builds on Ubuntu LTS rather than Debian and system libraries are tied to the Ubuntu version.\n  Images will use the most recent LTS available at the time when the corresponding R version was released.\n  - Since compatibility problems are likely to occur immediately after the release of a new Ubuntu LTS,\n    the version to be used is the one that is at least 90 days past release.\n    - `rocker/r-ver:4.0.0` is based on Ubuntu 20.04 (`ubuntu:focal`)\n      because no interval was set at the time of the Ubuntu 20.04 release.\n- Installs a fixed version of R itself from source, rather than whatever is already packaged for Ubuntu\n  (the `r-base` stack gets the latest R version as a binary from Debian unstable).\n- The only platforms available are `linux/amd64` and `linux/arm64`\n  (arm64 images are experimental and only available for `rocker/r-ver` 4.1.0 or later).\n- Set [the Posit Public Package Manager (RStudio Package Manager, RSPM)](https://packagemanager.posit.co)\n  as default CRAN mirror.\n  For the amd64 platform, RSPM serves compiled Linux binaries of R packages and greatly speeds up package installs.\n- Non-latest R version images installs all R packages from a fixed snapshot of CRAN mirror at a given date.\n  This setting ensures that the same version of the R package is installed no matter when the installation is performed.\n  - In addition to CRAN mirror, the version of RStudio Server installed in `rocker/rstudio` and\n    the date of CTAN mirror set in `rocker/verse` are also fixed.\n    Please check [the document about versions](https://github.com/rocker-org/rocker-versioned2/wiki/Versions) for details.\n- Provides images that are generally smaller than the `r-base` series.\n\n_Note: This repository is for R \u003e= 4.0.0 images.\nFor images with R \u003c= 3.6.3, please see the [`rocker-versioned`](https://github.com/rocker-org/rocker-versioned) repository,\nor the [`shiny`](https://github.com/rocker-org/shiny), [`geospatial`](https://github.com/rocker-org/geospatial),\nand [`binder`](https://github.com/rocker-org/binder) repositories._\n\n## Pre-built images\n\nThe following images have been built and are available on DockerHub or [GitHub Container Registry](https://github.com/orgs/rocker-org/packages?repo_name=rocker-versioned2).\n\nFor more information about these container images, please see [the Wiki of this repository](https://github.com/rocker-org/rocker-versioned2/wiki).\n\n### Image list\n\nCheck [the Rocker project site](https://rocker-project.org/images/#the-versioned-stack) for the list of images.\n\n### Tags\n\nCheck [the Wiki](https://github.com/rocker-org/rocker-versioned2/wiki) for the list of tags.\n\n#### Spacial tags for daily builds\n\nThere are also special tags that are not listed in the wiki, `devel`.\nThe GitHub Actions workflow build and push these images daily.\n\n- The `devel` images are based on `ubuntu:latest` (the latest Ubuntu LTS version) and install [the latest R-devel daily snapshot](https://cloud.r-project.org/src/base-prerelease/).\n  pre-built `devel` images are available for `rocker/r-ver`, `rocker/rstudio`, `rocker/tidyverse`, `rocker/verse`.\n\n#### Spacial tags for geospatial toolkit\n\n`rocker/geospatial:dev-osgeo` is special image that differ slightly from the regular `rocker/geospatial`.\n\n- built on the latest release of [PROJ](https://proj.org/), [GDAL](https://gdal.org/), and [GEOS](https://libgeos.org/).\n\n## Modifying and extending images\n\nCheck [the Rocker project site](https://rocker-project.org/use/extending.html) for common methods for Rocker images.\n\n### Install R packages\n\nPlease install R packages from source using the `install.packages()` R function or the `install2.r` script,\nand use `apt` only to install necessary system libraries (e.g. `libxml2`).\nDo not use `apt install r-cran-*` to install R packages.\n\nIf you would prefer to install only the latest verions of packages from pre-built binaries using `apt`,\nconsider using `r-base` or [`rocker/r-bspm`](https://github.com/rocker-org/bspm) instead.\n\n### Rocker scripts\n\nThe Docker images built from this repository describe the software installation method in standalone scripts\nrather than directly in the Dockerfiles.\nThese files are under [the `scripts` directory](./scripts/), and these files are copied in all Docker images,\nunder a top-level `/rocker_scripts` directory.\nThis allows users to extend images by selecting additional modules to install on top of any pre-built images.\n\nFor instance, if one wishes to install Shiny Server on top of a base of `rocker/rstudio:4.0.0`,\none could write a simple Dockerfile as follows:\n\n```Dockerfile\nFROM rocker/rstudio:4.0.0\nRUN /rocker_scripts/install_shiny_server.sh\n```\n\nInstall scripts can generally take a version as a first argument or ingest an environment variable\nto specify the version to install.\nSo to install fixed versions, one can use either of the following syntaxes:\n\n```Dockerfile\nFROM rocker/rstudio:4.0.0\nENV SHINY_SERVER_VERSION 1.5.14.948\nRUN /rocker_scripts/install_shiny_server.sh\n```\n\n```Dockerfile\nFROM rocker/rstudio:4.0.0\nRUN /rocker_scripts/install_shiny_server.sh 1.5.14.948\n```\n\nRStudio Server and Shiny Server are managed by [the S6 supervisor system](https://github.com/just-containers/s6-overlay),\nwhich allows containers to manage multiple background processes gracefully.\n\n_Note: No longer support `ADD=` runtime triggers for installing Shiny or similar modules,\nwhich is used for R \u003c= 3.6.3 images._\n\n## Build images\n\n### Container definition files\n\nDockerfiles and docker-bake.json files, which define the pre-built images,\nare in [the `dockerfiles` folder](./dockerfiles/) and [the `bakefiles` folder](./bakefiles/).\nAnd,\nthese files are generated by the build scripts under [the `build` folder](./build/).\n\nWhen a new version of R or RStudio is released, GitHub Actions will automatically create a Pull Request to update these files.\n\n### Update pre-built images\n\nLatest R version images will be built on a rolling basis;\nwhen the Dockerfiles are updated, they are immediately built by GitHub Actions.\n\nNon-latest R version images will be built when a new R version is released.\nAt this time, a tag and a GitHub release will also be created.\n\n## Contributing\n\nPlease check \u003chttps://github.com/rocker-org/rocker/wiki/How-to-contribute\u003e.\n\n## License\n\nThe Dockerfiles and the scripts in this repository are licensed under the GPL 2 or later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocker-org%2Frocker-versioned2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocker-org%2Frocker-versioned2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocker-org%2Frocker-versioned2/lists"}