InfoQ

News

Ruby and Rails Software Stacks Overview

Posted by Mirko Stocker on Aug 21, 2008 09:50 AM

Community
Ruby
Topics
Ruby on Rails ,
Deployment / Datacenter ,
Platforms ,
Runtimes
Tags
Ruby on Rails ,
EC2 ,
JRuby ,
Rails
While programming in Ruby is fun most of the times, setting up and configuring all the needed software components usually isn't. Fortunately, there exist an increasing number of Ruby software stacks in various flavors: Amazon EC2 images, virtual machine images, or simple installers for an existing system.

This list is by no means comprehensive, but should give an overview of the different kinds of Ruby software stacks available.

RubyWorks

The RubyWorks Production Stack is an offering from ThoughtWorks and consists of a several open source products, already configured to work together and easily installable and updateable via your Linux distribution's regular tools. It is offered for RedHat Enterprise Linux 4 and 5, CentOS, Debian Etch, and Ubuntu Feisty. Once you've installed the rubyworks package, you'll have a cluster of Mongrels behind HAProxy and monitored using monit. ThoughtWorks also offers paid support for this software stack.

EC2 on Rails

As the name gives away, EC2 on Rails is an image for Amazon's Elastic Computing Cloud EC2. It's an Ubuntu Linux server image and will run a Mongrel cluster behind Apache 2.2, mysql, memcached, monit, and much more for you. It also creates a backup of your data to Amazon S3. The management is done with Capistrano; you'll get all that's needed with the ec2onrails gem.

Elastic Server On-Demand

Elastic Server On-Demand, from CohesiveFT, lets you customize your own server before you can download an image for VMWare, Parallels, Xen, or EC2. You can also download images from other users and rate their images. Certainly a very interesting solution if you want to get a customized system quickly, without the need to install everything by hand.

Bitnami RubyStack and JRubyStack

Bitnami offers a whole range of software stacks, including one for Ruby with Rails, MySQL, Subversion and several gems. The JRuby stack includes JRuby, Rails, Java, Tomcat, GlassFish gem, MySQL and Subversion. Bitnami's stacks are based on an installer and work with Linux, OS X, and Windows, so you don't need a virtual machine to run them.

Engine Yard Express

If you're interested in Engine Yard's hosting services and want to know how one of their slices works, then you should try the Engine Yard Express VMWare image. It starts four mongrels, two of them Rails instances and the other two Merb.

What's your opinion of such software stacks? Are they a good thing or is it better to install or configure everything yourself? Do you know of other stacks?

FiveRuns Install by Dean Cruse Posted Aug 21, 2008 2:02 PM
Ruby build tools? by Kevin Teague Posted Aug 21, 2008 3:13 PM
Heroku?? by Kurt Christensen Posted Aug 22, 2008 11:59 AM
Stacks are a good thing, yes by Douwe Vonk Posted Aug 26, 2008 9:58 AM
  1. Back to top

    FiveRuns Install

    Aug 21, 2008 2:02 PM by Dean Cruse

    And, the FiveRuns Install stack, available at fiveruns.com/products/install.

  2. Back to top

    Ruby build tools?

    Aug 21, 2008 3:13 PM by Kevin Teague

    For Python projects/web apps I use zc.buildout, which is a build tool that allows you to specify all of the parts of a project in a config file(s). You can include everything that makes up your app in a single config file: database, web framework, libraries, web server, http cache, process manager, ldap, even the Python interpreter. Typically the recipes to install these parts build from source, the advantage of this approach is you can check into version control a complete description of the exact parts (and versions) required to run your app - and developers can match their dev and test environments up exactly with what's in production by simply checking out the project and running the build.

    For a Rails app that I support, our devs put together a simple bash script, since we couldn't find any Ruby equivalents to this approach. Installing from source is a bit more of a hassle than a pre-packaged stack, but in the long run it can pay off since it can suck to be too closely tied to a particular platform, especially when working w/ distributed teams where the developers may be running a variety of operating systems and you want them to easily reproduce all of the parts of the stack on their system.

  3. Back to top

    Heroku??

    Aug 22, 2008 11:59 AM by Kurt Christensen

    Heroku, anyone?? I've heard nothing but nice things about their service.

  4. Back to top

    Stacks are a good thing, yes

    Aug 26, 2008 9:58 AM by Douwe Vonk

    As you mentioned it lets you try out software much faster without first delving into all the component downloads/setups. Also in a corporate environment managing and testing all software components can be a hassle - e.g. when upgrading (you can't fool around here). I can imagine that a stack can be of help here also: 1) you probably (hopefully) get a stack where the versions of all components work together OK and 2) if the stack also delivers some migration tool for your current applications you will be very happy.

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.