In my previous post, I introduced Green Screen, a build monitoring tool that is designed to be used as a dynamic Big Visible Chart (BVC) in your work area. It lets you add links to your build servers and displays the largest possible information on a monitor so that the team can see the build status from anywhere in the room.
It is easy enough to get Green Screen up and running on your own server or VM. The project’s README includes all the information you’ll need for doing so. In this post, I’ll describe the steps necessary to run Green Screen on Heroku or on your own server using Chef.
Deploying to Heroku
Deploying to Heroku is probably the easiest way to get up and running with Green Screen. You’ll need a Heroku account but a free one should be sufficient. Check the quick start guide if you don’t yet have an account.
Once you’ve got your Heroku account set-up, simply follow these steps to get your Green Screen app deployed:
git clone email@example.com:customink/greenscreen.git
gem install heroku
git push heroku master
If your build servers are running on the Internet, Heroku may be all that you need.
Warning this default Green Screen looks at all of the builds currently running on http://ci.jenkins-ci.org. This is fine for demo purposes but you may find it to be a bit overwhelming since it’s over 300 builds at the time of this writing.
You can see a sample of this app running at http://greenscreenapp.com
Deploying with Chef
You simply need to include the greenscreen recipe to install, configure, and run one or more GreenScreen applications. Or add it to your role, or directly to a node’s recipes.
Of course, if you’re just getting started with Chef, you should look at Vagrant which is a tool for building and distributing virtualized development environments. With Vagrant, you can quickly spin-up a VM in VirtualBox and have it use the greenscreen cookbook.
The cookbook allows you to specify credentials and jobs to include or ignore with each server and allows you to set-up multiple Green Screens on the same node. At CustomInk, we use different Green Screen applications for different teams.
Here’s an excerpt from one of our Chef environment files:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
With this configuration, we have 2 Green Screens running, on ports 4567 and 4568. Both are polling build servers and showing different jobs. For instance, the server on 4567 excludes the www_redirects build (
:ignore_jobs => ["www_redirects"]) whereas the server on 4568 only includes this build (
:jobs => ["www_redirects"]) when polling the build03 server.