Giter VIP home page Giter VIP logo

dockerfile-dashing's Introduction

Dashing

Run Dashing in a Docker container.

Link: frvi/dashing

Run

docker run -d -p 8080:3030 frvi/dashing

And point your browser to http://localhost:8080/.

Configuration

Custom dashing port

If you want dashing to use a custom port inside the container, e g 8080, use the environment variable $PORT:

docker run -d -e PORT=8080 -p 80:8080 frvi/dashing

Dashboards

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)

Jobs

To provide custom jobs, use container volume /jobs:

docker run -v=/my/cool/job:/jobs -d -p 8080:3030 frvi/dashing

Widgets

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

Gems

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.

Configuration File

The configuration file config.ru is available on volume /config.

Edit this file to change your API key, to add authentication and more.

lib volume

The dashing lib dir is available on volume /lib-dashing.

Thanks

TODO:

  • Use official Ruby image from Docker hub. (Thank you @bemehow)

License

Distributed under the MIT license

dockerfile-dashing's People

Contributors

andrewwatson avatar frvi avatar larrycai avatar mattgruter avatar sashman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dockerfile-dashing's Issues

Dashboard not updating until container stops

Thank you for the docker image. I was successfully able to get it up and running and then using the default project from shopify dashing template project and the command below noticed that the dashboard doesn't update. The only time I get the update is when I stop the docker container, then the web page updates the view just 1 to what I would expect it to be. It's like the refresh of the web page doesn't work while the container is running. Was wondering if you might have any hints on what could be wrong?

docker run -v=/Users/name/Documents/git/dash/dashboards:/dashboards -v=/Users/name/Documents/git/dash/widgets:/widgets -v=/Users/name/Documents/git/dash/jobs:/jobs -d -p 80:3030 frvi/dashing

Not possible to restart Dashing inside the container

Hi,
I'm trying to restart dashing from within the container, first I access the container using :

docker exec -it 822bc5555a3c bash

But if I try to stop dashing I get an error:

root@822bc5555a3c:/dashing# dashing stop     
bundler: failed to load command: thin (/usr/local/bundle/bin/thin)
Thin::PidFileNotFound: Can't stop process, no PID found in tmp/pids/thin.pid

/lib folder is not availible

Hey frvi,

i like your contribution.
But i need to place some files into the /lib folder
Where is it located in your dockerfile/the Environment?

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.