Repository to test using Rshiny in Docker with mounted volume
This repository aims to test the creation of a Docker container that has a Shiny app inside it that is able to write to a mounted volume. The app consists of only one button which, once clicked, tells the app to save a tiny text file to the mounted volume.
docker build -t test-app .
If you already have a rocker/shiny image then this should take less than a minute.docker run --rm -it -v ~/:/srv/shiny-server/data/ -p 3838:3838 -u shiny test-app
docker run --rm -d -v ~/:/srv/shiny-server/data/ -p 3838:3838 -u shiny --name my-test-run test-app
docker exec -it my-test-run bash
cd /var/log/shiny-server
# Is shiny-server-shiny-*.log there? If yes, look inside/docker container kill $(docker container ls -q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.