Przeglądaj źródła

Only pull buildpack-deps:jessie-curl as needed

Mike Dillon 10 lat temu
rodzic
commit
d611da2e3c
1 zmienionych plików z 3 dodań i 1 usunięć
  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")"