Skip to content

MaastrichtU-IDS/rstudio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

RStudio image with Shiny server based on the popular Rocker RStudio image

Hosted on GitHub Container Registry (ghcr.io) to avoid DockerHub pull limitations, and easily deploy on clusters (such as Kubernetes).

๐Ÿท๏ธ Automatically updated

Publish Docker image Publish RStudio Docker image for JupyterHub

The image on ghcr.io is automatically updated every week (Monday at 3:00 GMT+1) by a GitHub Actions workflow to match the latest tag of rocker/verse

๐Ÿณ Run

Start RStudio on http://localhost:8787 with Shiny server on http://localhost:3838

docker run -it -p 8787:8787 -e PASSWORD=password -e ROOT=true ghcr.io/maastrichtu-ids/rstudio:latest

In the container:

  • Workspace path is /home/rstudio
  • User is rstudio with sudo privileges

Environment variables:

  • -e PASSWORD=password : set password
  • -e ROOT=true : enable sudo

๐Ÿ“ฆ๏ธ Build

You can define the base image used to build RStudio with the build argument BASE_IMAGE, for example here with bioconductor/bioconductor_docker:devel

docker build -t ghcr.io/maastrichtu-ids/rstudio:latest --build-arg BASE_IMAGE=bioconductor/bioconductor_docker:devel .

RStudio for JupyterHub

Build:

docker build -f jupyterhub.Dockerfile -t ghcr.io/maastrichtu-ids/rstudio:jupyterhub .

Run:

docker run -it -p 8888:8888 -e PASSWORD=password ghcr.io/maastrichtu-ids/rstudio:jupyterhub

Feel free to edit the Dockerfile to install additional packages in the image, and send a pull request!

Alternatives: