3 # This script is intended to make Arvados installation easy. It will download the
4 # latest copy of the Arvados docker images as well as the arvdock command. It
5 # then uses arvdock to spin up Arvados on this computer.
7 # The latest version of this script is available at http://get.arvados.org, so that this
8 # command does the right thing:
10 # $ \curl -sSL http://get.arvados.org | bash
12 # Prerequisites: working docker installation. Run this script as a user who is a member
13 # of the docker group.
23 printf "\n%*s\n\n" $(((${#title}+$COLUMNS)/2)) "********** $1 **********"
31 if [[ "$ECODE" != "0" ]]; then
32 title "$DOCKER pull $* failed"
39 \which which >/dev/null 2>&1 || fail "Error: could not find 'which' command."
41 # find the docker binary
42 DOCKER=`which docker.io`
44 if [[ "$DOCKER" == "" ]]; then
48 if [[ "$DOCKER" == "" ]]; then
49 fail "Error: you need to have docker installed. Could not find the docker executable."
53 echo "If necessary, this command will download the latest Arvados docker images."
54 echo "The download can take a long time, depending on the speed of your internet connection."
55 echo "When the images are downloaded, it will then start an Arvados environment on this computer."
57 docker_pull arvados/workbench
58 docker_pull arvados/doc
59 docker_pull arvados/keep
60 docker_pull arvados/shell
61 docker_pull arvados/compute
62 docker_pull arvados/keep
63 docker_pull arvados/api
64 docker_pull crosbymichael/skydns
65 docker_pull crosbymichael/skydock
67 # Now download arvdock and start the containers
69 echo Downloading arvdock
71 \curl -sSL https://raw.githubusercontent.com/curoverse/arvados/master/docker/arvdock -o arvdock
75 echo Starting the docker containers
79 echo To stop the containers, run