ShinyServer plus HadleyVerse plus my favorite packages
8.8K
Please use shrektan/rdocker4shinyserver instead.
It's an antomated build docker image from Github shrektan/shiny.
This is a Dockerfile of my own working environment, which is based on rocker/shiny and rocker/hadleyverse.
The image is available from Docker Hub.
I'm still working on it. Things will change!
RSQLServer. For ROracle (using Oracle instant client), you have to do it manually, because I don't have the time to figure out how to download the instant client automatically (you can send me an email if you don't know how to do it, my email is [email protected]).I will try to establish a clear and handy working process to establish the R working environment (maybe not suitable for everyone, but at least it would be kind of suitable for people who're working in the financial industry).
Currently, the image can run the shiny-server by default. If you need to run rstudio-server, you need one more line by manual.
docker run -d -p 80:3838 \
-v /srv/shinyapps/:/srv/shiny-server/ \
-v /srv/shinylog/:/var/log/shiny-server/ \
rocker/shiny
Related to database connection, the RJDBC is ok. However, ROracle cannot be achieved through an automated building, because the Oracle instant client can't be downloaded automatically. I'll create a new branch with dockerfile to build the ROracle available image manually (probably need to download the Oracle instant client by hand and put in some folder). For RODBC, although I've installed the unixODBC, I still can't connect to database through RODBC and I have no idea at all. But I believe it's fixable as long as I have the time.
docker pull shrektan/shiny.docker run -d -p 80:3838 -p 8787:8787 \
-v /Users/Flynn/Documents/RWD/shiny-apps/:/srv/shiny-server/ \
-v /Users/Flynn/Documents/RWD/shinylog/:/var/log/ \
--name shinyserver \
shrektan/shiny
docker exec -d shinyserver sh /usr/bin/rstudio-server.sh
The last line of code is to run the rstudio-server. If you only need shiny-server, then just ignore it.
docker pull cboettig/texlive:latestdocker run --name tex -v /usr/local/texlive cboettig/texlive. Note, it usually takes about 30 seconds.docker run -d -p 80:3838 -p 8787:8787 \
--volumes-from tex \
-e PATH=$PATH:/usr/local/texlive/2014/bin/x86_64-linux/ \
-v /Users/Flynn/Documents/RWD/shiny-apps/:/srv/shiny-server/ \
-v /Users/Flynn/Documents/RWD/shinylog/:/var/log/ \
--name shinyserver \
shrektan/shiny
docker exec -d shinyserver sh /usr/bin/rstudio-server.sh
PATH environment variable in shiny (I haven't figured out how to avoid this)sudo vi /etc/profile
export PATH=$PATH:/usr/local/texlive/2014/bin/x86_64-linux/
Content type
Image
Digest
sha256:23ae32467…
Size
1.1 GB
Last updated
over 8 years ago
docker pull shrektan/shiny