GithubHelp home page GithubHelp logo

codekow / s2i-r-shiny Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 47 KB

Run R (shiny) apps on OpenShift

Shell 74.35% R 25.65%
data-science openshift r shiny-apps shiny builder-image rshiny s2i-image s2i-rshiny

s2i-r-shiny's Introduction

R Shiny (RShiny) s2i image

R is a programming language for statistical computing and graphics. Created by statisticians and is used among data miners, bioinformaticians and statisticians for data analysis and developing statistical software. Users have created packages to augment the functions of the R language.

The official R software environment is an open-source free software environment within the GNU package, available under the GNU General Public License. It is written primarily in C, Fortran, and R itself.

Source-to-Image s2i is a framework that takes application source code as an input and produces a new image that runs the assembled application as output. Openshift builds can be triggered if either the code changes or the s2i builder image is updated.

OpenShift Examples

Create Builder Image

oc new-build \
  https://github.com/codekow/s2i-r-shiny.git \
  --name s2i-r-shiny \
  --context-dir container

oc logs bc/s2i-r-shiny \
  --follow  

Build New App

You can look in example/app of this repo to create an example app.

File List:

  • app.R or server.R - This is your primary application (required)
  • setup.R - Can be used to run R to setup your application (optional: example installs rmarkdown)
  • .s2i/assemble - Standard s2i assemble override (optional)
  • .s2i/run - Standard s2i run override (optional)

Build w/ setup.R

oc new-app s2i-r-shiny~https://github.com/codekow/s2i-r-shiny.git \
    --context-dir=example/app \
    --name=shiny-test \
    --labels examples=shiny \
    --strategy=source

oc expose svc/shiny-test \
  --labels examples=shiny \
  --port 8080 \
  --overrides='{"spec":{"tls":{"termination":"edge"}}}'

Build from GitHub

oc new-app s2i-r-shiny~https://github.com/rstudio/shiny-examples \
    --context-dir=001-hello \
    --name=shiny-hello \
    --labels examples=shiny \
    --strategy=source

oc expose svc/shiny-hello \
  --labels examples=shiny \
  --port 8080 \
  --overrides='{"spec":{"tls":{"termination":"edge"}}}'

Build all examples

scripts/examples.sh

Clean Up

oc delete all -l example=shiny

Links

Misc links

s2i-r-shiny's People

Contributors

codekow avatar

Stargazers

 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.