Преглед на файлове

Only pull buildpack-deps:jessie-curl as needed

Mike Dillon преди 10 години
родител
ревизия
d611da2e3c
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      test/tests/jetty-hello-web/run.sh

+ 3 - 1
test/tests/jetty-hello-web/run.sh

@@ -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")"