X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/46dadfab678ef9001d7a7b5dc3f63ea815d108be..b5352280e200fcecc39a8705151a0a3eb6be6e81:/docker/build.sh diff --git a/docker/build.sh b/docker/build.sh index 74d2ed33e1..cbcc840667 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -1,9 +1,14 @@ -#! /bin/sh +#! /bin/bash -# build the base wheezy image -./mkimage-debootstrap.sh arvados/debian wheezy http://debian.lcs.mit.edu/debian/ +# make sure Ruby 1.9.3 is installed before proceeding +if ! ruby -e 'exit RUBY_VERSION >= "1.9.3"' 2>/dev/null +then + echo "Installing Arvados requires at least Ruby 1.9.3." + echo "You may need to enter your password." + read -p "Press Ctrl-C to abort, or else press ENTER to install ruby1.9.3 and continue. " unused -# build the Docker images -docker build -t arvados/base base -docker build -t arvados/api api -docker build -t arvados/docserver docserver + sudo apt-get update + sudo apt-get -y install ruby1.9.3 +fi + +build_tools/build.rb $*