Skip to content
Knut Ole Sjøli edited this page Nov 5, 2019 · 5 revisions

Welcome to the shiny-server.docker wiki!

Install Shiny packages

Shiny server is run as a Docker Image. To install more packages, you simply rebuild the Docker Image with the new packages, and restart the Shiny server.

See versions of installed packages

See this page for instructions: https://github.com/mapic/shiny-server.docker/wiki/Package-versions

Step-by-step Instructions (for Staging server)

  1. Log into the Staging server using SSH
  2. Go to folder /home/ubuntu/shiny-server.docker
  3. Edit the r-packages-extra.list file and add your package there
  4. Rebuild the Docker image: bash build.sh. Make sure the image builds successfully. (If it fails, the image does not register, and no changes have been made. Try again with a different package, or google the error message.)
  5. Restart the Shiny server with the new Image:
cd /home/ubuntu/shiny
bash stop-shiny.sh
bash start-shiny.sh
  1. Your packages should be available on the Shiny on Staging now.

Extra credit

  1. If you want the packages to be available on the Sandbox or Prod (Cloud) Shiny enviornment as well, you need to push the Docker Image to the Docker Hub, and retrieve it from those server afterwards:
  2. First, from the Staging server where you built your Docker Image, do docker push mapic/shiny-server:latest.
  3. Then log into Sandbox server, and do docker pull mapic/shiny-server:latest and restart Shiny server (like explained above).
  4. For Prod/cloud, do the same: pull latest image, and restart Shiny server.

That's it :)