R Image Creator
Description
Creates R images on demand, given a base R image, a set of system dependencies, an renv lock file or even a set of R packages along with repositories that can be used for installing dependencies. This action will publish packages exclusively to ghcr.io (Github Container Registry). DockerHub is not supported at the moment.
Action Type
Composite
Author
Roche/Genentech - Insights Engineering
Inputs
-
image-name
:Description: name of the image that will be stored into ghcr
Required:
false
Default:
rocker/rstudio:4.3.0
-
repository_owner
:Description: Repository owner (image will be pushed on ghcr/repository_owner)
Required:
true
-
repo-user
:Description: User access project container registry. Github variable
${{ github.actor }}
can be used.Required:
true
-
repo-token
:Description: Token to access project container registry. Github variable
${{ secrets.GITHUB_TOKEN }}
can be used.Required:
true
-
tag
:Description: Custom Image Tag/Version. Defaults to current date in the
YYYY.MM.DD
format if unspecified.Required:
false
Default:
""
-
tag-latest
:Description: Tag image as
latest
Required:
false
Default:
False
-
base-image
:Description: Base image
Required:
false
Default:
rocker/rstudio:4.3.0
-
sysdeps
:Description: A list of system dependencies to install on the image. This should be a comma-separated list of sysdeps. Eg: 'libxml2,adoptopenjdk-8,tcltk' Note that the sysdeps name should be OS-specific. Right now, only Debian OSes (installable via apt) are supported.
Required:
false
Default:
""
-
renv-lock-file
:Description: A location of an renv.lock file that should be restored on the image. This can also be a remote location (i.e. a GitHub raw URL etc).
Required:
false
Default:
""
-
packages
:Description: A comma-separated list of R packages that should be installed on the image. Dependencies will be fetched from the 'repos' option specified below. Eg: 'pharmaverse/admiral,pharmaverse/admiralonco,dplyr'
Required:
false
Default:
""
-
repos
:Description: A comma-separated set of R package repository URLs that can be used for getting dependencies for the 'packages' installed. Eg: 'https://cloud.r-project.org,https://cran.r-project.org'
Required:
false
Default:
https://cloud.r-project.org
Outputs
None