Construct a Docker image featuring the RStudio Server IDE running atop the Microsoft R Open (MRO) distribution of R. The Dockerfile is heavily based on the rocker/rstudio image except that the rocker image is based on Debian (rather than Ubuntu 18.04) and the rocker image tracks the official GNU/R distribution.
To use the image, run:
docker run -d --rm -p 8787:8787 -e PASSWORD=your_password blueogive/mro-rstudioand browse to http://127.0.0.1:8787 or, equivalently,
http://localhost:8787 on the host where
the container is running. When presented with the RStudio login screen,
enter username as docker and password as your_password.
To mount the working directory as a volume within the container:
docker run -d --rm -p 8787:8787 -v $(pwd):/home/docker/work -e PASSWORD=your_password blueogive/mro-rstudioAs with the rocker/rstudio image, you can elect to install and start a Shiny Server when you instantiate the container. To do so, start the container with this command:
docker run -d --rm -p 8787:8787 -e ADD=shiny -e PASSWORD=your_password blueogive/mro-rstudio