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