-#! /bin/sh
+#! /bin/bash
-# build the base wheezy image
-./mkimage-debootstrap.sh arvados/debian wheezy http://debian.lcs.mit.edu/debian/
+# make sure Ruby is installed before proceeding
+if ! ruby -v > /dev/null 2>&1
+then
+ echo "Installing Ruby. You may be required to enter your password."
+ sudo apt-get update
+ sudo apt-get install ruby
+fi
-# build the Docker images
-docker build -t arvados/base base
-docker build -t arvados/api api
+./build.rb $*