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))
28 if ! [[ -n "$WORKSPACE" ]]; then
30 echo >&2 "Error: WORKSPACE environment variable not set"
37 # find the docker binary
38 DOCKER=`which docker.io`
40 if [[ "$DOCKER" == "" ]]; then
44 if [[ "$DOCKER" == "" ]]; then
45 title "Error: you need to have docker installed. Could not find the docker executable."
50 title "Starting docker build"
52 # clean up the docker build environment
59 # Get test config.yml file
60 cp $HOME/docker/config.yml .
66 if [[ "$ECODE" != "0" ]]; then
67 title "!!!!!! docker BUILD FAILED !!!!!!"
68 EXITCODE=$(($EXITCODE + $ECODE))
71 title "docker build complete"
73 title "uploading images"
75 if [[ "$ECODE" == "0" ]]; then
76 docker_push arvados/api
77 docker_push arvados/compute
78 docker_push arvados/doc
79 docker_push arvados/workbench
80 docker_push arvados/keep
81 docker_push arvados/shell
83 title "upload arvados images SKIPPED because build failed"
86 title "upload arvados images complete"
88 title "Starting docker java-bwa-samtools build"
90 ./build.sh java-bwa-samtools-image
94 if [[ "$ECODE" != "0" ]]; then
95 title "!!!!!! docker java-bwa-samtools BUILD FAILED !!!!!!"
96 EXITCODE=$(($EXITCODE + $ECODE))
99 title "docker build java-bwa-samtools complete"
101 title "upload arvados/jobs image"
103 if [[ "$ECODE" == "0" ]]; then
104 docker_push arvados/jobs
106 title "upload arvados/jobs image SKIPPED because build failed"
109 title "upload arvados/jobs image complete"