From 06a1b8880afd264d97501db9c0bd660b43d64384 Mon Sep 17 00:00:00 2001 From: Manuel Vogel Date: Sun, 2 Aug 2020 18:09:03 +0200 Subject: [PATCH] fix: pins docker registry for tests to v2.7.0 --- scripts/testacc_setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/testacc_setup.sh b/scripts/testacc_setup.sh index 6441c748..9847a0aa 100755 --- a/scripts/testacc_setup.sh +++ b/scripts/testacc_setup.sh @@ -17,7 +17,8 @@ openssl req \ # Create auth mkdir -p "$(pwd)"/scripts/testing/auth # Start registry -docker run --rm --entrypoint htpasswd registry:2 -Bbn testuser testpwd > "$(pwd)"/scripts/testing/auth/htpasswd +# pinned to 2.7.0 due to https://github.com/docker/docker.github.io/issues/11060 +docker run --rm --entrypoint htpasswd registry:2.7.0 -Bbn testuser testpwd > "$(pwd)"/scripts/testing/auth/htpasswd docker run -d -p 15000:5000 --rm --name private_registry \ -v "$(pwd)"/scripts/testing/auth:/auth \ -e "REGISTRY_AUTH=htpasswd" \ @@ -26,7 +27,7 @@ docker run -d -p 15000:5000 --rm --name private_registry \ -v "$(pwd)"/scripts/testing/certs:/certs \ -e "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry_auth.crt" \ -e "REGISTRY_HTTP_TLS_KEY=/certs/registry_auth.key" \ - registry:2 + registry:2.7.0 # wait a bit for travis... sleep 5 # Login to private registry