From 0ef139ac4d475fb99e08b0856dd7f27b97082e50 Mon Sep 17 00:00:00 2001 From: Omar Padron Date: Fri, 8 Feb 2019 19:39:40 -0500 Subject: work around an issue with docker/dockerhub (#10547) * try to workaround an issue with docker/dockerhub * apply workaround only when running in travis --- share/spack/qa/run-docker-tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'share') diff --git a/share/spack/qa/run-docker-tests b/share/spack/qa/run-docker-tests index 8613c7e728..f561e2f34b 100755 --- a/share/spack/qa/run-docker-tests +++ b/share/spack/qa/run-docker-tests @@ -21,9 +21,23 @@ ensure_docker_login() { return $__login_success fi + if [ "$CI" '=' 'true' -a "$TRAVIS" '=' 'true' ] ; then + # NOTE: work around an issue with docker/docker hub + # https://github.com/docker/hub-feedback/issues/1222 + # https://github.com/docker/cli/issues/1180 + rm -f $HOME/.docker/config.json + fi + echo "$DOCKER_PASSWORD" | \ docker login -u "$DOCKER_USERNAME" --password-stdin + if [ "$CI" '=' 'true' -a \ + "$TRAVIS" '=' 'true' -a \ + '!' -f "$HOME/.docker/config.json" ] + then + echo "Warning: config file $HOME/.docker/config.json not created" >&2 + fi + if [ $? '=' '0' ] ; then __login_success=0 fi -- cgit v1.2.3-60-g2f50