Sign inSign up

asachet/shiny-magick

By asachet

•Updated almost 7 years ago

R-base + shiny package + image magick library. Base container for shiny apps using magick.

Image
0

10K+

asachet/shiny-magick repository overview

⁠Dockerfiles for portable shiny apps

These images are a stable and convenient base to package shiny apps, typically with a Dockerfile looking like:

FROM asachet/shiny-base:3.6.1

# Add packages specific to this app
RUN install2.r -s --error \
radarchart \
googlesheets

WORKDIR /usr/local/src/mycoolapp

COPY data/ data/
COPY www/ www/
COPY *.R ./
COPY *.yml ./

EXPOSE 3838

CMD ["r", "-e", "shiny::runApp('.', port=3838, host='0.0.0.0', launch.browser=F)"]

⁠shiny-base

  • Built on the most stable R image, rocker/r-ver
  • Contains shiny and common packages like shinydashboard, shinyWidgets, shinythemes, DT for dataTableOutput, etc
  • Contains a minimal tidyverse and ggplot-verse
  • Contains convenience (and IMO best practice) tools like logging and config

⁠shiny-mysql

  • Built on shiny-base for robustness
  • Adds system libraries and R packages necessary to connect to MySQL databases
  • NOTE: relies on RMariaDB instead of the legacy RMySQL package!

⁠shiny-dev

  • Built on rocker-rstudio rather than rocker:r-ver, but using the same version.
  • Contains shiny-base + shiny-mysql + rstudio + devtools + roxygen2
  • Not meant for deployment but useful for development in the same controlled environment using rstudio in the browser.

⁠shinyproxy-base

No longer living in this repository as R version tags did not make sense for this image.

  • Containerised shinyproxy, suitable to set up a shinyproxy server. Simply add your yml config. See www.shinyproxy.io⁠
  • Dockerfile adapted from openalanalytics's shinyproxy-config-examples⁠
  • Not a suitable base for shiny apps as it does not contain shiny.

⁠LICENSE

These Dockerfiles are under the MIT license. RStudio and Shiny are trademarks of RStudio, Inc.

Tag summary

Content type

Image

Digest

Size

477.2 MB

Last updated

almost 7 years ago

docker pull asachet/shiny-magick