comparison docker/do_all.sh @ 27:b2a09608bd9b

docker: fixed "./do_all.sh pull" + minor change
author Goffi <goffi@goffi.org>
date Mon, 20 Oct 2014 16:55:45 +0200
parents 0e78c8a4626e
children bcba1966e6db
comparison
equal deleted inserted replaced
26:a5e4c6c2a37d 27:b2a09608bd9b
49 49
50 for cont_dir in $DIRS; do 50 for cont_dir in $DIRS; do
51 cont_name=$(grep -o "Salut à Toi/[^ ]\+" $cont_dir/Dockerfile | sed "s&Salut à Toi/&&" | tr '[:upper:]' '[:lower:]') 51 cont_name=$(grep -o "Salut à Toi/[^ ]\+" $cont_dir/Dockerfile | sed "s&Salut à Toi/&&" | tr '[:upper:]' '[:lower:]')
52 cd "$cont_dir" 52 cd "$cont_dir"
53 printf "\n==> Doing a $cmd for $ACCOUNT/$cont_name in $cont_dir with extra [$@] <===\n\n" 53 printf "\n==> Doing a $cmd for $ACCOUNT/$cont_name in $cont_dir with extra [$@] <===\n\n"
54 docker $cmd $BEFORE "$ACCOUNT/${cont_name}${TAG}" "$@" "$AFTER" 54 docker $cmd $BEFORE "$ACCOUNT/${cont_name}${TAG}" "$@" $AFTER
55 err=$? 55 err=$?
56 cd "$ori_dir" 56 cd "$ori_dir"
57 if [ $err -ne 0 ]; then 57 if [ $err -ne 0 ]; then
58 printf "Build of $cont_name failed (exit code $err), exiting\n" 58 printf "$cmd of $cont_name failed (exit code $err), exiting\n"
59 exit 1 59 exit 1
60 fi 60 fi
61 done 61 done