|
|
@@ -8,7 +8,9 @@ image="$1"
|
|
|
|
|
|
# Pull a client image with curl for testing
|
|
|
clientImage='buildpack-deps:jessie-curl'
|
|
|
-docker pull "$clientImage"
|
|
|
+if ! docker inspect --type=image "$clientImage" &> /dev/null; then
|
|
|
+ docker pull "$clientImage"
|
|
|
+fi
|
|
|
|
|
|
# Create an instance of the container-under-test
|
|
|
cid="$(docker run -d -v "$dir/index.jsp":/var/lib/jetty/webapps/ROOT/index.jsp:ro "$image")"
|