Browse Source

Only pull buildpack-deps:jessie-curl as needed

Mike Dillon 10 năm trước cách đây
mục cha
commit
d611da2e3c
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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")"