jekriske/shinyapp:latest
$ singularity pull shub://jekriske/shinyapp:latest
Singularity Recipe
Bootstrap: shub
From: jekriske/r-base
%labels
Maintainer Jeff Kriske
%environment
source /opt/rh/devtoolset-7/enable
export SHINY_PORT=31337
%help
This will run a simple shiny app from the gallery example at
https://github.com/rstudio/shiny-examples/tree/master/050-kmeans-example
%runscript
cd /myshinyapp
exec R -e "options(browser='firefox');shiny::runApp(host='0.0.0.0', port=$SHINY_PORT, launch.browser=TRUE)"
%post
source /opt/rh/devtoolset-7/enable
yum update -y
yum install -y firefox wget
mkdir myshinyapp && cd myshinyapp
wget https://raw.githubusercontent.com/rstudio/shiny-examples/master/050-kmeans-example/server.R
wget https://raw.githubusercontent.com/rstudio/shiny-examples/master/050-kmeans-example/ui.R
Rscript -e "install.packages('packrat', repos='http://cran.rstudio.com')"
Rscript -e "packrat::init();install.packages('shiny', repos='http://cran.rstudio.com')"
yum clean all && rm -rf /var/cache/yum
Collection
- Name: jekriske/shinyapp
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/jekriske-shinyapp-latest |
collection name | jekriske/shinyapp |
branch | master |
tag | latest |
commit | cbab4f45b475849fb5a17f8f49b05882832245d6 |
version (container hash) | 085bc811a949a3372dcd3616d8b65993 |
build date | 2020-07-01T05:00:40.467Z |
size (MB) | 985 |
size (bytes) | 382349343 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.