prometheus/promdash — pull request #66 by discordianfish (2014-02-25 19:51:08+00:00)
Title: Containerize

After building promdash image by doing:

$ docker build -t promdash .

You can create the database by:

$ docker run -t -i -link mysqld:db \
-e PROMDASH_MYSQL_DATABASE= \
-e PROMDASH_MYSQL_USERNAME= \
-e PROMDASH_MYSQL_PASSWORD= \
-p promdash rake db:setup

(You can also set DATABASE_URL if you can use docker links)

Now you can run promdash like this:

$ docker run -t -i -link mysqld:db \
-e PROMDASH_MYSQL_DATABASE= \
-e PROMDASH_MYSQL_USERNAME= \
-e PROMDASH_MYSQL_PASSWORD= \
-p 3000 promdash