transfer from old repo

This commit is contained in:
Andreas Gammelgaard Damsbo 2026-08-19 09:27:27 +02:00
commit 277e2b8cf3
No known key found for this signature in database
1111 changed files with 83736 additions and 0 deletions

View file

@ -0,0 +1,95 @@
# shiny-verse:3.6.0
FROM rocker/verse:3.5.3
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libmariadb-client-lgpl-dev \
libpq-dev \
libssl-dev \
libcurl4-openssl-dev \
libssh2-1-dev \
unixodbc-dev \
&& install2.r --error \
--deps TRUE \
tidyverse \
dplyr \
devtools \
formatR \
remotes \
selectr \
caTools \
BiocManager
LABEL maintainer="Travis Gerke (Travis.Gerke@moffitt.org)"
# Install system dependencies for required packages
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libssl-dev \
libxml2-dev \
libmagick++-dev \
libv8-3.14-dev \
libglu1-mesa-dev \
freeglut3-dev \
mesa-common-dev \
libudunits2-dev \
libpoppler-cpp-dev \
libwebp-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error --deps TRUE \
shinyAce \
shinydashboard \
shinyWidgets \
DiagrammeR \
ggdag \
igraph \
pdftools \
shinyBS \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN Rscript -e "devtools::install_github('metrumresearchgroup/texPreview', ref = 'e954322')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# Install TinyTeX
RUN install2.r --error tinytex \
&& export CTAN_REPO="http://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet" \
&& wget -qO- \
"https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" | \
sh -s - --admin --no-path \
&& mv ~/.TinyTeX /opt/TinyTeX \
&& /opt/TinyTeX/bin/*/tlmgr path add \
&& tlmgr update --self \
&& tlmgr install metafont mfware inconsolata tex ae parskip listings \
&& tlmgr install standalone varwidth xcolor colortbl multirow psnfss setspace pgf \
&& tlmgr path add \
&& Rscript -e "tinytex::r_texmf()" \
&& chown -R root:staff /opt/TinyTeX \
&& chmod -R a+w /opt/TinyTeX \
&& chmod -R a+wx /opt/TinyTeX/bin \
&& echo "PATH=${PATH}" >> /usr/local/lib/R/etc/Renviron \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error --deps TRUE shinyjs \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error plotly \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error shinycssloaders \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
ARG TRIGGER_UPDATE=unknown
RUN installGithub.r gadenbuie/grkstyle r-lib/styler
RUN installGithub.r gadenbuie/shinyThings@undo \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
#ARG SHINY_APP_IDLE_TIMEOUT=600
#RUN sed -i "s/directory_index on;/app_idle_timeout ${SHINY_APP_IDLE_TIMEOUT};/g" /etc/shiny-server/shiny-server.conf
#COPY . /srv/shiny-server/shinyDAG
#RUN chown -R shiny:shiny /srv/shiny-server/

View file

@ -0,0 +1,36 @@
## Building and developing shinyDAG
### shinyDAG dev environment
I use the Dockerfile in this folder to create a fully-featured RStudio docker container that is *pretty close* to the final shinyDAG environment.
Note that it's not perfect and if you install packages into this container, you'll need to also update the main shinyDAG docker file [here](../Dockerfile).
To create the dev environment:
```bash
# make sure you're in the ./dev folder
cd dev
# make the dev image
docker build -t shinydag-dev .
# move back to shinyDAG proper and start up the dev image
cd ..
docker run --rm -p 8787:8787 -v $(pwd):/home/rstudio/shinydag -e PASSWORD="password" shinydag-dev
```
(Note that you should probably change the password above, but if you're only running locally it's not a big deal.)
Then navigate to <localhost:8787> and login using the password you entered.
### Create shinyDAG image
```bash
docker build -t gerkelab/shinydag:dev .
# To send up to docker hub
docker push
```
The `:dev` indicates that this image is tagged `dev`, but this can be anything you want.
If you don't add a tag, it's assumed to be `:latest` which is kind of like git's `master` but for docker containers.