An open API service indexing awesome lists of open source software.

https://github.com/lc0/docker-shiny-server

Docker container for Shiny Server
https://github.com/lc0/docker-shiny-server

dataviz docker docker-container shiny shiny-server visualisation

Last synced: about 1 year ago
JSON representation

Docker container for Shiny Server

Awesome Lists containing this project

README

          

Docker container for Shiny Server
=======================

[![Docker Repository on Quay](https://quay.io/repository/lc00/docker-shiny-server/status "Docker Repository on Quay")](https://quay.io/repository/lc00/docker-shiny-server)
[![Docker Hub](https://img.shields.io/docker/pulls/sergii/docker-shiny-server.svg "Docker Hub")](https://hub.docker.com/r/sergii/docker-shiny-server/)

The image is also available from [Docker Hub](https://hub.docker.com/r/sergii/docker-shiny-server/).

## Usage:

To run a container with Shiny Server
```sh
docker run -d -p 3838:3838 sergii/docker-shiny-server
```

If you run `docker-machine` you need to find IP of the running: `docker-machine ip machine_name`

Or just generate a complete URL of Shiny server:
```sh
echo http://$(docker-machine ip machine_name):3838
```

In order to run your application you can use [Docker Volumes](https://docs.docker.com/engine/userguide/containers/dockervolumes/)
```sh
docker run -d -p 3838:3838 -v ~/pop:/srv/shiny-server/pop sergii/docker-shiny-server
```
In this case, our application is located in ~/pop. Running application should be available by URL:

```sh
echo http://$(docker-machine ip machine_name):3838/pop
````
Now you can just edit you R files, without a need to rebuild an image every time. Be aware, folder sharing works for OSX docker-machine automatically only if your project is located in a home directory.

# Video
![lc0/docker-shiny-server example/docker-shiny-server](http://g.recordit.co/0iHRE5jO18.gif "lc0/docker-shiny-server example")
[Video](http://recordit.co/0iHRE5jO18)

---

> [lc0.github.io](http://lc0.github.io)  · 
> Twitter [@lc0d3r](https://twitter.com/lc0d3r)  · 
> GitHub [@lc0](https://github.com/lc0)