Skip to content

adamhf/smashing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smashing Alpine Container: Smashing is the new http://dashing.io fork name.

Run Smashing in a minimal Alpine Docker container.

Using alpine image. The container size has been reduced from about 800MB to about 200MB.

Link: rgcamus/alpine_smashing

Docker Build Status Docker Automated build Docker Stars Docker Pulls

Build (optional)

git clone https://github.com/rgcamus/dockerfile-alpine_smashing.git

cd dockerfile-alpine_smashing

docker build -t alpine_smashing .

Run

docker run -d -p 8080:3030 rgcamus/alpine_smashing

And point your browser to http://localhost:8080/, or to http://localhost:8080/sampletv for a 1080p TV layout.

Configuration

Custom smashing port

If you want smashing 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 rgcamus/alpine_smashing

Dashboards

To provide a custom dashboard, use container volume /dashboards:

docker run -v=/my/custom/dashboards:/dashboards -d -p 8080:3030 rgcamus/alpine_smashing

(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 rgcamus/alpine_smashing

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 rgcamus/alpine_smashing

This example will install the Random Aww widget before starting smashing. Multiple widgets can be supplied.

Also you can use local custom widgets

docker run -v=/my/cool/widgets:/widgets -d -p 8080:3030 rgcamus/alpine_smashing

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 rgcamus/alpine_smashing

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 rgcamus/alpine_smashing

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 smashing lib dir is available on volume /lib-smashing.

Note: This is a fork of the dockerfile-dashing. Read about that here

Thanks

License

Distributed under the MIT license

About

Run smashing in an Alpine Docker container.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 63.9%
  • Dockerfile 36.1%