1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Updated pybuilder example to use 'docker wait'

This commit is contained in:
Solomon Hykes 2013-02-26 14:47:20 -08:00
parent ebaa50c4c9
commit 4004e86fa9

View file

@ -49,7 +49,7 @@ if [ "$CMD" = "build" ]; then
fi fi
if attach $BUILD_JOB ; then if attach $BUILD_JOB ; then
BUILD_STATUS=`docker ps -a | sed -E -n "s/^$BUILD_JOB.*Exit ([0-9]+) *$/\1/p"` BUILD_STATUS=`docker wait $BUILD_JOB`
if [ -z "$BUILD_STATUS" -o "$BUILD_STATUS" != 0 ]; then if [ -z "$BUILD_STATUS" -o "$BUILD_STATUS" != 0 ]; then
echo "Build failed" echo "Build failed"
exit 1 exit 1