├── .gitignore ├── Dockerfile ├── README.md ├── build_scripts.txt └── shinyauth.Rproj /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | .Rhistory 3 | .RData 4 | .Ruserdata 5 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # VERSION 3.0 2 | # Shiny Version: 1.7.4.1 3 | 4 | FROM rocker/shiny-verse:latest 5 | 6 | # Update new packages 7 | RUN apt-get update -qq 8 | 9 | # Get cargo 10 | RUN apt-get install cargo -y 11 | 12 | # Install R package dependencies 13 | RUN apt-get -y --no-install-recommends install \ 14 | libtesseract-dev \ 15 | libleptonica-dev \ 16 | tesseract-ocr \ 17 | tesseract-ocr-eng \ 18 | libpoppler-cpp-dev \ 19 | poppler-data \ 20 | libmagick++-dev \ 21 | libxml2 \ 22 | libcurl4-openssl-dev \ 23 | libxml2-dev \ 24 | git-core \ 25 | libssl-dev \ 26 | libgtk2.0-dev \ 27 | libcairo2-dev \ 28 | libxt-dev \ 29 | xvfb \ 30 | xauth \ 31 | libfftw3-dev \ 32 | libx11-dev \ 33 | libtiff-dev \ 34 | xfonts-base \ 35 | libavfilter-dev \ 36 | librsvg2-dev \ 37 | lbzip2 \ 38 | libfftw3-dev \ 39 | libgdal-dev \ 40 | libgeos-dev \ 41 | libgsl0-dev \ 42 | libgl1-mesa-dev \ 43 | libglu1-mesa-dev \ 44 | libhdf4-alt-dev \ 45 | libhdf5-dev \ 46 | libjq-dev \ 47 | libpq-dev \ 48 | libproj-dev \ 49 | libprotobuf-dev \ 50 | libnetcdf-dev \ 51 | libsqlite3-dev \ 52 | libssl-dev \ 53 | libudunits2-dev \ 54 | netcdf-bin \ 55 | postgis \ 56 | protobuf-compiler \ 57 | sqlite3 \ 58 | tk-dev \ 59 | unixodbc-dev \ 60 | libsasl2-dev \ 61 | libv8-dev \ 62 | libsodium-dev \ 63 | libharfbuzz-dev \ 64 | libfribidi-dev \ 65 | gcc \ 66 | g++ \ 67 | libfreetype6-dev \ 68 | libglib2.0-dev \ 69 | libcairo2-dev \ 70 | meson \ 71 | pkg-config \ 72 | gtk-doc-tools 73 | 74 | # Install R packages 75 | RUN install2.r --error --deps TRUE -r http://cran.rstudio.com \ 76 | tesseract \ 77 | av \ 78 | gifski \ 79 | pdftools \ 80 | magick \ 81 | rsvg \ 82 | shiny \ 83 | bslib \ 84 | shinyWidgets \ 85 | shinythemes \ 86 | shinyjs \ 87 | mongolite \ 88 | jsonlite \ 89 | config \ 90 | remotes \ 91 | tidyquant \ 92 | plotly 93 | 94 | RUN installGithub.r \ 95 | business-science/shinyauthr 96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # shinyauth 2 | The Dockerfile for the shinyauth R environment used in the [Shiny Developer with AWS](https://university.business-science.io/p/expert-shiny-developer-with-aws-course-ds4b-202a-r/) course. Installs: 3 | 4 | - shiny-verse:latest 5 | - shinyWidgets 6 | - shinythemes 7 | - shinyjs 8 | - mongolite 9 | - jsonlite 10 | - config 11 | - remotes 12 | - tidyquant 13 | - plotly 14 | - shinyauthr 15 | 16 | # Installation 17 | 18 | ``` r 19 | remotes::install_github("https://github.com/business-science/shinyauth") 20 | ``` 21 | 22 | # Docker Image Version History 23 | 24 | ## Version 2.0 25 | 26 | - Updates `quantmod` to fix error accessing Yahoo! Finance data 27 | 28 | ## Version 1.0 29 | 30 | - Updated to `shiny 1.7.1` 31 | 32 | ## Version 0.0 33 | 34 | - Original Course Version 35 | -------------------------------------------------------------------------------- /build_scripts.txt: -------------------------------------------------------------------------------- 1 | 2 | # Clean up space if needed in Docker: 3 | docker system prune -a 4 | 5 | docker pull rocker/shiny-verse 6 | 7 | docker run --rm -p 3838:3838 mdancho/shinyauth:latest 8 | 9 | # Build shinyauth image from scratch (takes a while): 10 | docker build . -t mdancho/shinyauth:latest --no-cache 11 | 12 | # Tag the latest version: 13 | docker tag mdancho/shinyauth:latest mdancho/shinyauth:version3.0 14 | 15 | # Push to Docker Hub: 16 | docker push mdancho/shinyauth:version3.0 17 | docker push mdancho/shinyauth:latest 18 | 19 | # Run the image: 20 | docker run -it mdancho/shinyauth:latest /bin/bash 21 | 22 | # Test the image: 23 | R -e "packageVersion('shiny')" 24 | R -e "tidyquant::tq_get('AAPL')" 25 | 26 | # Exit the image: 27 | exit 28 | -------------------------------------------------------------------------------- /shinyauth.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: Default 4 | SaveWorkspace: Default 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 4 10 | Encoding: UTF-8 11 | 12 | RnwWeave: Sweave 13 | LaTeX: pdfLaTeX 14 | --------------------------------------------------------------------------------