GitHub Codespaces is a hosted development environment in the cloud. Codespaces is Remote Containers customized for GitHub. Once set up, Codespaces can be access through the web-based frontend or local installation of Visual Studio Code.
This repository shows how you can run RStudio on GitHub Codespaces starting from Jupyter r-notebook image. The main advantage of this setup is that the resulting container image will also run on Jupyter Hub.
There are three ways to use the container image in this repository.
- Jupyter Hub
- GitHub Codespaces
docker-compose
(requires command line)
Your IT staff will know what to do with the dockerfile
First, you need access to Codespaces and enabled. Then, the files in .devcontainer
directory will do all the work!
Here are the steps:
# Clone this repository
git clone https://github.com/dddlab/rstudio
cd rstudio
# Symlink .devcontainer contents except devcontainer.json
ln -s .devcontainer/!(devcontainer.json) .
# Build image and start container
docker-compose build rstudio
docker-compose up