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
- Host: GitHub
- URL: https://github.com/lc0/docker-shiny-server
- Owner: lc0
- Created: 2015-12-30T16:55:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-31T20:23:01.000Z (over 10 years ago)
- Last Synced: 2025-05-06T22:56:09.978Z (about 1 year ago)
- Topics: dataviz, docker, docker-container, shiny, shiny-server, visualisation
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 14
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker container for Shiny Server
=======================
[](https://quay.io/repository/lc00/docker-shiny-server)
[](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

[Video](http://recordit.co/0iHRE5jO18)
---
> [lc0.github.io](http://lc0.github.io) ·
> Twitter [@lc0d3r](https://twitter.com/lc0d3r) ·
> GitHub [@lc0](https://github.com/lc0)