Skip to content

Dockerfile to be use to build image for docker container with Shiny

Notifications You must be signed in to change notification settings

KevinCharette/docker-shiny

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-shiny

Docker container for shiny server 1.5.6.875

"A web application framework for R"

"Turn your analyses into interactive web applications"

Shiny server: use to host and manage shiny application (R - powered web application)

Install dependencies

To install docker in Ubuntu 16.04 use the commands:

$ sudo apt-get update
$ sudo wget -qO- https://get.docker.com/ | sh

To install docker in other operating systems check docker online documentation

Usage

To run container use the command below:

$ docker run -d -p 3838:3838 quantumobject/docker-shiny

To run the container with your own Shiny applications located in a directory on your system, expose that directory path to the Shiny server inside the container:

$ docker run -d -p 3838:3838 -v <LOCAL DIRECTORY PATH>:/srv/shiny-server quantumobject/docker-shiny

When modified or adding files to <LOCAL DIRECTORY PATH> you need to restart the container to allow it to change the files to the right ownership and permission.

Accessing the Shiny Server applications:

After that check with your browser at addresses plus the port 3838 :

  • http://host_ip:3838/

To access it , configured and edit files inside of the container :

$ docker exec -it container-id /bin/bash

note : it was created by using quantumobject/docker-baseimage and installing the package R and Shiny-server from rstudio.com . RStudio is a trademark of RStudio, Inc.

More Info

About Shiny Server: shiny.rstudio.com

To help improve this container docker-shiny

Shiny Server Administrator's Guide

Example of Shiny Server

For additional info about us and our projects check our site www.quantumobject.org

About

Dockerfile to be use to build image for docker container with Shiny

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%