8 printf "\n%*s\n\n" $(((${#title}+$COLUMNS)/2)) "********** $1 **********"
12 # Sometimes docker push fails; retry it a few times if necessary.
13 for i in `seq 1 5`; do
16 if [[ "$ECODE" == "0" ]]; then
21 if [[ "$ECODE" != "0" ]]; then
22 title "!!!!!! docker push $* failed !!!!!!"
23 EXITCODE=$(($EXITCODE + $ECODE))
32 echo -n "$(($SECONDS - $t0))s"
36 if ! [[ -n "$WORKSPACE" ]]; then
38 echo >&2 "Error: WORKSPACE environment variable not set"
45 # find the docker binary
46 DOCKER=`which docker.io`
48 if [[ "$DOCKER" == "" ]]; then
52 if [[ "$DOCKER" == "" ]]; then
53 title "Error: you need to have docker installed. Could not find the docker executable."
58 title "Starting docker build"
62 # clean up the docker build environment
69 # Get test config.yml file
70 cp $HOME/docker/config.yml .
76 if [[ "$ECODE" != "0" ]]; then
77 title "!!!!!! docker BUILD FAILED !!!!!!"
78 EXITCODE=$(($EXITCODE + $ECODE))
81 title "docker build complete (`timer`)"
83 title "uploading images"
87 if [[ "$ECODE" == "0" ]]; then
88 docker_push arvados/api
89 docker_push arvados/compute
90 docker_push arvados/doc
91 docker_push arvados/workbench
92 docker_push arvados/keep
93 docker_push arvados/keepproxy
94 docker_push arvados/shell
95 docker_push arvados/sso
97 title "upload arvados images SKIPPED because build failed"
100 title "upload arvados images complete (`timer`)"
102 title "Starting docker java-bwa-samtools build"
106 ./build.sh java-bwa-samtools-image
110 if [[ "$ECODE" != "0" ]]; then
111 title "!!!!!! docker java-bwa-samtools BUILD FAILED !!!!!!"
112 EXITCODE=$(($EXITCODE + $ECODE))
115 title "docker build java-bwa-samtools complete (`timer`)"
117 title "upload arvados/jobs image"
120 if [[ "$ECODE" == "0" ]]; then
121 docker_push arvados/jobs
123 title "upload arvados/jobs image SKIPPED because build failed"
126 title "upload arvados/jobs image complete (`timer`)"