1#!/bin/sh 2# Build zchunk-centos:7 if it doesn't exist 3HAVE_IMAGE=$(docker image ls -q zchunk-centos:7) 4if [ "$HAVE_IMAGE" == "" ]; then 5 autotest/centos-7/prep.sh 6 if [ "$?" -ne 0 ]; then 7 exit 1 8 fi 9fi 10docker image rm zchunk-centos:test -f 2>/dev/null 1>/dev/null 11docker image build -t zchunk-centos:test --file autotest/centos-7/build/Dockerfile ./ 12 13