flaviobarros / shiny-wordcloud Goto Github PK
View Code? Open in Web Editor NEWExample dockerized Shiny App
Example dockerized Shiny App
Se eu crio um app com subpastas dentro, com arquivos de dados por exemplo, no servidor a estrutura de pastas some e o sistema não funciona.
Looks like you have a merge conflict in Dockerfile
This is more of a question, rather than an issue. I want to ask some things about the dockerfile you have created, since I started using docker only a few days ago and your example is the only viable on the internet at the moment, regarding R shiny and how it can be used with docker.
a) Why are you using r-base instead of, lets say, rocker/shiny? Are there differences? Is there a particular reason you picked the first?
b) Why are you downloading debian files? Are they needed for running the containers? Are they connected with the proper run of the r shiny apps? If so, how?
c) In your example you are exposing the port 80 and you have created a conf file which listens to the same port. Can you give more info or similar examples about the .conf file? Can you explain the last CMD command you are giving in the Dockerfile?
I hope Im not an annoyance, thanks in advance and am looking forward to your replies.
Thanks, I have got this running on my dokku server, I haven't tried yet but what are the issues with using this approach to host multiple shiny apps on the same server?
The build fails with:
http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8o-4squeeze14_amd64.deb:
2016-05-23 15:09:04 ERROR 404: Not Found.
This error is fatal. The wget
and dpkg -i
combination seems somewhat error prone. Why is openssl
required in exactly this version? Are you sure the normal repos are unsuitable?
Hi
I am trying to replicate your demo. I cloned the source files into my own machine, and ran docker build -t word-cloud
to create an image.
Then I tried to run the image with docker run -it --rm -p 80:80 word-cloud
but got the error "exec:\"/usr/bin/shiny-server.sh\":permission denied"
I then used CMD["chmod", "+x", "/usr/bin/shiny-server.sh"]
instead of CMD["/usr/bin/shiny-server.sh"]
and this time no error popped up, nothing happened afterwards - the app was not running.
If I pull your image from Docker Hub and did the same everything worked fine!
Do you have any idea about why this might happen? Thanks a lot!
I'm having some trouble updating a docker image cloned from shiny-wordcloud
. One of the packages I need is DiagrammeR
which requires R 3.4.0 (see error message from Docker build below). However, FROM: r-base:latest
installs R 3.3.3. Is there an easy way to get 3.4.0 or 3.4.1 installed in a Docker build? Thanks!
* installing *source* package ‘DiagrammeR’ ...
** package ‘DiagrammeR’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘grDevices’ 3.3.3 is already loaded, but >= 3.4.0 is required
ERROR: lazy loading failed for package ‘DiagrammeR’
* removing ‘/usr/local/lib/R/site-library/DiagrammeR’
Not really an issue but ...
I forked your shiny-wordcloud repo to https://github.com/radiant-rstats/docker-radiant today. I adapted the Docker file and everything seems to work as intended locally. I also pushed the image to Docker Hub (vnijs/radiant). This is my first attempt at dockerizing so I'd be happy to hear any comments or suggestions you might have (e.g., is using RUN git clone ... in the Dockerfile a good idea?).
Apparently after recent r-base image push (3 days ago):
https://hub.docker.com/r/library/r-base/tags/
it is impossible to build docker image:
The following packages have unmet dependencies:
libcairo2-dev : Depends: libx11-dev but it is not going to be installed
Depends: libxrender-dev (>= 0.6) but it is not going to be installed
Depends: libxext-dev but it is not going to be installed
Depends: libxcb1-dev (>= 1.6) but it is not going to be installed
Depends: libxcb-render0-dev (>= 1.6) but it is not going to be installed
Depends: libxcb-shm0-dev but it is not going to be installed
libxt-dev : Depends: libx11-dev but it is not going to be installed
I was able to build image when switching r-base tag back to 3.1.2
version.
In this context switching dynamic latest
tag to specific one could save troubles.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.