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).
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
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:latestEnvironment variables:
-e PASSWORD=password: set password-e ROOT=true: enablesudo
In the container when using the flag ROOT=true:
- Workspace path is
/root - User is
rootwithsudoprivileges
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 .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:jupyterhubFeel free to edit the Dockerfile to install additional packages in the image, and send a pull request!
Alternatives:
- RStudio in Docker: CSCfi RStudio image for OpenShift
- Run the Shiny server in a separate container