fix: pins docker registry for tests to v2.7.0

This commit is contained in:
Manuel Vogel 2020-08-02 18:09:03 +02:00
parent 3aa90de66c
commit 06a1b8880a
No known key found for this signature in database
GPG key ID: 24E54F214569A8A5

View file

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