docker run -d -p 8080:3030 frvi/dashing
And point your browser to http://localhost:8080/.
Custom dashing port
If you want dashing to use a custom port inside the container, e g 8080, use the environment variable
docker run -d -e PORT=8080 -p 80:8080 frvi/dashing
To provide a custom dashboard, use container volume /dashboards:
docker run -v=/my/custom/dashboards:/dashboards -d -p 8080:3030 frvi/dashing
(Don't forget to also provide the layout.erb)
To provide custom jobs, use container volume /jobs:
docker run -v=/my/cool/job:/jobs -d -p 8080:3030 frvi/dashing
To install custom widgets supply the gist IDs of the widgets as an environment variable:
docker run -d -e WIDGETS=5641535 -p 8080:3030 frvi/dashing
This example will install the Random Aww widget
before starting dashing. Multiple widgets can be supplied.
Also you can use local custom widgets
docker run -v=/my/cool/widgets:/widgets -d -p 8080:3030 frvi/dashing
To install gems, supply the gem name(s) as an environment variable:
docker run -d -e GEMS=instagram -e WIDGETS=5278790 -p 8080:3030 frvi/dashing
This example installs the Instagram photos by location widget,
which depends on the instagram gem. Multiple gems and widgets can be supplied like so:
docker run -d -e GEMS="mysql instagram" -e WIDGETS=5278790 -p 8080:3030 frvi/dashing
Public (favicon, 404)
To provide custom 404 and favicon, use container volume /public.
The configuration file
config.ru is available on volume /config.
Edit this file to change your API key, to add authentication and more.
The dashing lib dir is available on volume /lib-dashing.
- @mattgruter, awsome contributions!
- @rowanu, Hotness Widget.
- @munkius, fork of Hotness Widget.
- @chelsea, Random Aww.
- [x] Use official Ruby image from Docker hub. (Thank you @bemehow)
Distributed under the MIT license
Like this, really easy to get up and running quickly. Thanks!
I need to use the google-api-client gem. I can add this as an environment GEMS variable, which is fine, but impacts container creation / start-up time. Ideally I'd have that gem in the docker image. Couple of options:
- Fork your project / mod the Dockerfile to add this gem.
- Base a new docker image on yours, but add the gem. (I'm not totally sure how to do this).
I can imagine that this is a common problem, so any advice very gratefully received.
Works flawlessly for our use case. Thanks! Would be even more awesome with versions/tags ;)
would be perfect with VOLUME /lib
will be nice to add
VOLUME /widgets as well (with correct link) since some private widgets will not be available in gist
Now using base image debian:7.5, which made the image about 260 MB smaller.