Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
citizenair
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vmm
citizenair
Commits
2f370dee
Commit
2f370dee
authored
Nov 07, 2018
by
Jan Wijffels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ShinyProxy deployment
parent
e3722930
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
README.md
+24
-0
citizenair-shinyproxy/Dockerfile
+19
-0
citizenair-shinyproxy/Rprofile.site
+4
-0
No files found.
README.md
View file @
2f370dee
...
...
@@ -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)
...
...
citizenair-shinyproxy/Dockerfile
0 → 100644
View file @
2f370dee
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()"]
citizenair-shinyproxy/Rprofile.site
0 → 100644
View file @
2f370dee
local({
old <- getOption("defaultPackages")
options(defaultPackages = c(old, "citizenair"), shiny.port = 3838, shiny.host = "0.0.0.0")
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment