Giter Site home page Giter Site logo

shiny-wordcloud's Introduction

Dockerized Shiny App

This is the Dockerized Shiny App Wordcloud

This Dockerfile is based on Debian "testing" and r-base image.

The image is available from Docker Hub.

Usage:

To run this Shiny App on your computer:

docker run --rm -p 80:80 flaviobarros/shiny-wordcloud

and it will avaliable at http://127.0.0.1/ or http://localhost

You can run the container at other ports. It can happen that there is some service running at PORT 80, as Apache ou Nginx. To run the app at PORT 3838 for example, you can use:

docker run --rm -p 3838:80 flaviobarros/shiny-wordcloud

Intented usage:

This project can be used as a start point to build any dockerized shiny app that could be distributed at any server running docker. Possible use cases are:

  • Deploy a single Shiny App at AWS, Google Compute Engine, Azure or a private server with docker.
  • Deploy Shiny Apps at a docker based PaaS as dokku.

Building your own Shiny App:

After developing your Shiny App, you will need two files for deployment: ui.R and server.R. Then:

  • Remove all files from folder mypp (these files are from Wordcloud example) and put your files there, ui.R and server.R
  • Build a docker image with:
docker build -t yourname/yourappname .

At this poit you will be able to run your app, just like Wordcloud.

Deploy with a docker based PaaS

If you have a PaaS with Dockerfiles support, like Deis or Dokku, you can git push this image. I just wrote a post with further instructions: Git pushing Shiny Apps with docker and dokku

IMPORTANT

This project is not an alternative Shiny Server. It exposes PORT 80 (not 3838) and is intented to serve only single shiny apps.

shiny-wordcloud's People

Contributors

flaviobarros avatar wch avatar kintany avatar cboettig avatar eddelbuettel avatar wetrobot avatar matthieubizien avatar kdpsingh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.