Merge branch 'master' into 2221-complete-docker
[arvados.git] / docker / build.sh
1 #! /bin/bash
2
3 # make sure Ruby 1.9.3 is installed before proceeding
4 if ! ruby -e 'exit RUBY_VERSION >= "1.9.3"' 2>/dev/null
5 then
6     echo "Installing Arvados requires at least Ruby 1.9.3."
7     echo "You may need to enter your password."
8     read -p "Press Ctrl-C to abort, or else press ENTER to install ruby1.9.3 and continue. " unused
9     
10     sudo apt-get update
11     sudo apt-get -y install ruby1.9.3
12 fi
13
14 ./build.rb $*