Commit 2f370dee by Jan Wijffels

Add ShinyProxy deployment

parent e3722930
......@@ -32,6 +32,30 @@ devtools::install_git('https://www.datatailor.be/vmm/citizenair', subdir = 'citi
Om de app te deployen kan ShinyProxy gebruikt worden
- De shinyproxy docker image vind je in the citizenair-shinyproxy folder
- Bouw de Docker image: `docker build citizenair-shinyproxy -t bnosac/citizenair`
- Voeg volgende shinyproxy elementen toe in je .yml shinyproxy config file en herstart shinyproxy `service shinyproxy stop/start/restart`
```
- name: citizenair
display-name: Citizen Air: meet - evalueer - vergelijk
description: Deze toepassing laat je toe om de kwaliteit van je eigen luchtmeting in te schatten.
docker-cmd: ["R", "-e citizenair::run_app()"]
docker-image: bnosac/citizenair
```
#### Deployment pechverhelping:
- Als er iets fout is met het docker image, inspecteer
- de image: `docker run --rm -ti bnosac/citizenair bash`
- de container: `docker exec -it jouwcontainernaam /bin/bash`
- Als het citizenair R package veranderde, herbouw de docker image
- `docker rmi bnosac/citizenair`
- `docker build citizenair-shinyproxy --no-cache --force-rm -t bnosac/citizenair`
## Documentatie
![](http://www.textfiles.com/underconstruction/HeHeartlandPark2601underconstructionbar9.gif)
......
FROM rocker/geospatial
MAINTAINER Jan Wijffels "jwijffels@bnosac.be"
RUN R -e "install.packages(c('devtools'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('flexdashboard', 'shiny', 'shinyWidgets', 'rmarkdown', 'DT'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('data.table', 'httr', 'readxl', 'magrittr', 'cellranger', 'fasttime'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('leaflet', 'sp', 'rgeos'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('dygraphs'), repos='https://cloud.r-project.org/')"
RUN R -e "devtools::install_github('bnosac/BelgiumMaps.Statbel')"
RUN R -e "devtools::install_github('52North/sensorweb4R')"
RUN git -c http.sslVerify=false clone https://www.datatailor.be/vmm/citizenair
RUN R CMD INSTALL citizenair/citizenair
COPY Rprofile.site /usr/local/lib/R/etc
EXPOSE 3838
CMD ["R", "-e citizenair::run_app()"]
local({
old <- getOption("defaultPackages")
options(defaultPackages = c(old, "citizenair"), shiny.port = 3838, shiny.host = "0.0.0.0")
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment