summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorOmar Padron <omar.padron@kitware.com>2019-02-08 19:39:40 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2019-02-08 16:39:40 -0800
commit0ef139ac4d475fb99e08b0856dd7f27b97082e50 (patch)
treee9ce70dacf3bc74b8e3e90c1fb4c2cdf9aa43ed1 /share
parent36ebd7462c6287b5fe3b4cb9f50597dd57d833f4 (diff)
downloadspack-0ef139ac4d475fb99e08b0856dd7f27b97082e50.tar.gz
spack-0ef139ac4d475fb99e08b0856dd7f27b97082e50.tar.bz2
spack-0ef139ac4d475fb99e08b0856dd7f27b97082e50.tar.xz
spack-0ef139ac4d475fb99e08b0856dd7f27b97082e50.zip
work around an issue with docker/dockerhub (#10547)
* try to workaround an issue with docker/dockerhub * apply workaround only when running in travis
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-docker-tests14
1 files changed, 14 insertions, 0 deletions
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