8 printf "\n%*s\n\n" $(((${#title}+$COLUMNS)/2)) "********** $1 **********"
16 if [[ "$ECODE" != "0" ]]; then
17 title "!!!!!! docker push $* failed !!!!!!"
18 EXITCODE=$(($EXITCODE + $ECODE))
23 if ! [[ -n "$WORKSPACE" ]]; then
25 echo >&2 "Error: WORKSPACE environment variable not set"
32 # find the docker binary
33 DOCKER=`which docker.io`
35 if [[ "$DOCKER" == "" ]]; then
39 if [[ "$DOCKER" == "" ]]; then
40 title "Error: you need to have docker installed. Could not find the docker executable."
45 title "Starting docker build"
47 # clean up the docker build environment
54 # Get test config.yml file
55 cp $HOME/docker/config.yml .
61 if [[ "$ECODE" != "0" ]]; then
62 title "!!!!!! docker BUILD FAILED !!!!!!"
63 EXITCODE=$(($EXITCODE + $ECODE))
66 title "docker build complete"
68 title "uploading images"
70 if [[ "$ECODE" == "0" ]]; then
71 docker_push arvados/api
72 docker_push arvados/compute
73 docker_push arvados/doc
74 docker_push arvados/workbench
75 docker_push arvados/keep
76 docker_push arvados/shell
78 title "upload arvados images SKIPPED because build failed"
81 title "upload arvados images complete"
83 title "Starting docker java-bwa-samtools build"
85 ./build.sh java-bwa-samtools-image
89 if [[ "$ECODE" != "0" ]]; then
90 title "!!!!!! docker java-bwa-samtools BUILD FAILED !!!!!!"
91 EXITCODE=$(($EXITCODE + $ECODE))
94 title "docker build java-bwa-samtools complete"
96 title "upload arvados/jobs image"
98 if [[ "$ECODE" == "0" ]]; then
99 docker_push arvados/jobs
101 title "upload arvados/jobs image SKIPPED because build failed"
104 title "upload arvados/jobs image complete"