-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Knut Ole Sjøli edited this page Nov 5, 2019
·
5 revisions
Welcome to the shiny-server.docker wiki!
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 this page for instructions: https://github.com/mapic/shiny-server.docker/wiki/Package-versions
- Log into the Staging server using SSH
- Go to folder /home/ubuntu/shiny-server.docker
- Edit the
r-packages-extra.list
file and add your package there - 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.) - Restart the Shiny server with the new Image:
cd /home/ubuntu/shiny
bash stop-shiny.sh
bash start-shiny.sh
- Your packages should be available on the Shiny on Staging now.
- 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:
- First, from the Staging server where you built your Docker Image, do
docker push mapic/shiny-server:latest
. - Then log into Sandbox server, and do
docker pull mapic/shiny-server:latest
and restart Shiny server (like explained above). - For Prod/cloud, do the same: pull latest image, and restart Shiny server.
That's it :)