From 59ee8d6ada89500b37c79f497a0d3a1f00cbe769 Mon Sep 17 00:00:00 2001 From: Henrique Santos Date: Tue, 7 Dec 2021 21:58:38 -0500 Subject: [PATCH 1/2] renamed app dir --- {Visualization Codes => app}/ACCORD.csv | 0 {Visualization Codes => app}/ALLHAT.csv | 0 {Visualization Codes => app}/SPRINT.csv | 0 {Visualization Codes => app}/app.R | 0 .../modules/Equity_metrics.R | 0 {Visualization Codes => app}/modules/Source.R | 0 .../modules/background_data/nhanes_diabetes.csv | 0 .../background_data/nhanes_diabetes_combined.csv | 0 .../modules/background_data/nhanes_diabetes_lab.csv | 0 .../modules/background_data/nhanes_hypertension.csv | 0 .../nhanes_hypertension_combined.csv | 0 .../background_data/nhanes_hypertension_lab.csv | 0 {Visualization Codes => app}/modules/data_load.R | 0 .../modules/studies_comparison.R | 0 .../modules/sunburst_process.R | 0 {Visualization Codes => app}/www/Rensselaer.png | Bin .../www/Rensselaer_round.png | Bin {Visualization Codes => app}/www/color.png | Bin {Visualization Codes => app}/www/spread-style.css | 0 19 files changed, 0 insertions(+), 0 deletions(-) rename {Visualization Codes => app}/ACCORD.csv (100%) rename {Visualization Codes => app}/ALLHAT.csv (100%) rename {Visualization Codes => app}/SPRINT.csv (100%) rename {Visualization Codes => app}/app.R (100%) rename {Visualization Codes => app}/modules/Equity_metrics.R (100%) rename {Visualization Codes => app}/modules/Source.R (100%) rename {Visualization Codes => app}/modules/background_data/nhanes_diabetes.csv (100%) rename {Visualization Codes => app}/modules/background_data/nhanes_diabetes_combined.csv (100%) rename {Visualization Codes => app}/modules/background_data/nhanes_diabetes_lab.csv (100%) rename {Visualization Codes => app}/modules/background_data/nhanes_hypertension.csv (100%) rename {Visualization Codes => app}/modules/background_data/nhanes_hypertension_combined.csv (100%) rename {Visualization Codes => app}/modules/background_data/nhanes_hypertension_lab.csv (100%) rename {Visualization Codes => app}/modules/data_load.R (100%) rename {Visualization Codes => app}/modules/studies_comparison.R (100%) rename {Visualization Codes => app}/modules/sunburst_process.R (100%) rename {Visualization Codes => app}/www/Rensselaer.png (100%) rename {Visualization Codes => app}/www/Rensselaer_round.png (100%) rename {Visualization Codes => app}/www/color.png (100%) rename {Visualization Codes => app}/www/spread-style.css (100%) diff --git a/Visualization Codes/ACCORD.csv b/app/ACCORD.csv similarity index 100% rename from Visualization Codes/ACCORD.csv rename to app/ACCORD.csv diff --git a/Visualization Codes/ALLHAT.csv b/app/ALLHAT.csv similarity index 100% rename from Visualization Codes/ALLHAT.csv rename to app/ALLHAT.csv diff --git a/Visualization Codes/SPRINT.csv b/app/SPRINT.csv similarity index 100% rename from Visualization Codes/SPRINT.csv rename to app/SPRINT.csv diff --git a/Visualization Codes/app.R b/app/app.R similarity index 100% rename from Visualization Codes/app.R rename to app/app.R diff --git a/Visualization Codes/modules/Equity_metrics.R b/app/modules/Equity_metrics.R similarity index 100% rename from Visualization Codes/modules/Equity_metrics.R rename to app/modules/Equity_metrics.R diff --git a/Visualization Codes/modules/Source.R b/app/modules/Source.R similarity index 100% rename from Visualization Codes/modules/Source.R rename to app/modules/Source.R diff --git a/Visualization Codes/modules/background_data/nhanes_diabetes.csv b/app/modules/background_data/nhanes_diabetes.csv similarity index 100% rename from Visualization Codes/modules/background_data/nhanes_diabetes.csv rename to app/modules/background_data/nhanes_diabetes.csv diff --git a/Visualization Codes/modules/background_data/nhanes_diabetes_combined.csv b/app/modules/background_data/nhanes_diabetes_combined.csv similarity index 100% rename from Visualization Codes/modules/background_data/nhanes_diabetes_combined.csv rename to app/modules/background_data/nhanes_diabetes_combined.csv diff --git a/Visualization Codes/modules/background_data/nhanes_diabetes_lab.csv b/app/modules/background_data/nhanes_diabetes_lab.csv similarity index 100% rename from Visualization Codes/modules/background_data/nhanes_diabetes_lab.csv rename to app/modules/background_data/nhanes_diabetes_lab.csv diff --git a/Visualization Codes/modules/background_data/nhanes_hypertension.csv b/app/modules/background_data/nhanes_hypertension.csv similarity index 100% rename from Visualization Codes/modules/background_data/nhanes_hypertension.csv rename to app/modules/background_data/nhanes_hypertension.csv diff --git a/Visualization Codes/modules/background_data/nhanes_hypertension_combined.csv b/app/modules/background_data/nhanes_hypertension_combined.csv similarity index 100% rename from Visualization Codes/modules/background_data/nhanes_hypertension_combined.csv rename to app/modules/background_data/nhanes_hypertension_combined.csv diff --git a/Visualization Codes/modules/background_data/nhanes_hypertension_lab.csv b/app/modules/background_data/nhanes_hypertension_lab.csv similarity index 100% rename from Visualization Codes/modules/background_data/nhanes_hypertension_lab.csv rename to app/modules/background_data/nhanes_hypertension_lab.csv diff --git a/Visualization Codes/modules/data_load.R b/app/modules/data_load.R similarity index 100% rename from Visualization Codes/modules/data_load.R rename to app/modules/data_load.R diff --git a/Visualization Codes/modules/studies_comparison.R b/app/modules/studies_comparison.R similarity index 100% rename from Visualization Codes/modules/studies_comparison.R rename to app/modules/studies_comparison.R diff --git a/Visualization Codes/modules/sunburst_process.R b/app/modules/sunburst_process.R similarity index 100% rename from Visualization Codes/modules/sunburst_process.R rename to app/modules/sunburst_process.R diff --git a/Visualization Codes/www/Rensselaer.png b/app/www/Rensselaer.png similarity index 100% rename from Visualization Codes/www/Rensselaer.png rename to app/www/Rensselaer.png diff --git a/Visualization Codes/www/Rensselaer_round.png b/app/www/Rensselaer_round.png similarity index 100% rename from Visualization Codes/www/Rensselaer_round.png rename to app/www/Rensselaer_round.png diff --git a/Visualization Codes/www/color.png b/app/www/color.png similarity index 100% rename from Visualization Codes/www/color.png rename to app/www/color.png diff --git a/Visualization Codes/www/spread-style.css b/app/www/spread-style.css similarity index 100% rename from Visualization Codes/www/spread-style.css rename to app/www/spread-style.css From 317f1ca6e3a39b68ec72999641b82c873f06fcd7 Mon Sep 17 00:00:00 2001 From: Henrique Santos Date: Tue, 7 Dec 2021 21:58:53 -0500 Subject: [PATCH 2/2] initial Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0038469 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM r-base:latest +LABEL maintainer="USER " +RUN apt-get update && apt-get install -y --no-install-recommends \ + sudo \ + libcurl4-gnutls-dev \ + libcairo2-dev \ + libxt-dev \ + libssl-dev \ + libssh2-1-dev \ + libxml2-dev \ + && rm -rf /var/lib/apt/lists/* + +RUN R -e 'install.packages(c("BiocManager", "shinydashboard", "shiny", "shinyBS", "ggplot2", "methods", "hexbin", "DT", "dplyr", "RColorBrewer", "BBmisc", "viridis", "hrbrthemes", "plotly", "tidyr", "haven", "survey", "stringr", "interactions", "gplots", "lazyeval", "tidyverse", "treemap", "sunburstR", "d3r", "rintrojs", "jsonlite", "sp", "shinyjqui", "geofacet", "gtsummary", "data.table", "formattable", "kableExtra", "DataCombine", "knitr", "magrittr", "bsplus", "gtools", "rAmCharts", "shinyjs", "shinyWidgets", "rjson", "shinyFeedback", "remotes", "devtools"))' +RUN R -e 'remotes::install_github("daqana/dqshiny")' +RUN R -e 'devtools::install_github("vladchimescu/lpsymphony")' +RUN echo "local(options(shiny.port = 3838, shiny.host = '0.0.0.0'))" > /usr/lib/R/etc/Rprofile.site +RUN addgroup --system app \ + && adduser --system --ingroup app app +WORKDIR /home/app +COPY app . +RUN chown app:app -R /home/app +USER app +EXPOSE 3838 +CMD ["R", "-e", "shiny::runApp('/home/app')"] \ No newline at end of file