This repository provides several use cases for the application.
- Use the application to work on your local computer;
- Publish the application using Shiny Server Docker image;
- Publish the application using Shiny Docker image to run using Shiny proxy.
Application files are located in the app folder.
Build Web Biodiversity Viewer shiny server Docker image
docker build --file ./shiny_server.dockerfile -t biodiversity_viewer_shiny_server .
Run biodiversityviewer docker image
docker run -d --name shinyserver -p 3838:3838 -v "gbif_data:/srv/shiny-server/gbif_data" biodiversity_viewer_shiny_server
or
docker run -d --name shinyserver -p 3838:3838 -v "gbif_data:/srv/shiny-server/gbif_data" antonbiatov/biodiversity_viewer_shiny_server:latest
you need to configure host docker https://www.shinyproxy.io/documentation/getting-started/ depende on type of operation system.
For example on Windows:
sc config docker binpath= "C:/Program Files/Docker/Docker/resources/dockerd.exe --run-service -H tcp://127.0.0.1:2375"
docker build --file ./shiny_app.dockerfile -t biodiversity_viewer_shiny_app .
Test run shiny app
docker run --rm -d --name biodiversityviewershinyapp -p 3838:3838 -v "gbif_data:/home/app/gbif_data" biodiversity_viewer_shiny_app
docker network create shinyproxy-net
docker build --file ./shinyproxy.dockerfile -t biodiversity_viewer_shinyproxy .
Test run shinyproxy
docker run --rm -it --name shinyproxy -v "//var/run/docker.sock:/var/run/docker.sock" --net shinyproxy-net -p 8080:8080 biodiversity_viewer_shinyproxy
Run SinyProxy
docker run -d -v /var/run/docker.sock:/var/run/docker.sock --net sp-example-net --name shinyproxy -p 8080:8080 biodiversity_viewer_shinyproxy
