Skip to content

rkingdc/datascience-portal

Repository files navigation

Data Science Portal

A portal to RStudio and Jupyter with ability to host Shiny and Dash apps.

Background

This uses shinyproxy under the hood to manage login and etc. Thi assumes you'll be running on a linux system.

Getting started

  1. Make sure docker and docker-compose are installed.
  2. Clone this repo
  3. Build docker images for example apps
docker build -t example_shiny ./shiny
docker build -t example_dash ./dash
docker build -t rstudio ./rstudio
docker build -t jupyter ./jupyter
  1. Create a docker user/group for managing mounted home dirs in rstudio and jupyter. more info
groupadd -g 1011 docker_worker
useradd -s /bin/false -u 1010 -g 1020 docker_worker

Give the users home directories and pass ownership to the docker_worker

# these are my cats - they are data scientists too...
sudo mkdir /home/users/mau
sudo mkdir /home/users/mau
sudo chown -R docker_worker:docker_worker /home/users
  1. Add users and passwords for these users in shinyproxy/application.yml

  2. Run docker-compose up to start the data science portal

docker compose up

Some Notes

To get the terminal working in RStudio: Tools > Global Options > Terminal and uncheck Connect with Websockets