From c57d328d8c7b131e06c47340304349d198935e7c Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Thu, 22 Aug 2019 14:32:33 +0000 Subject: [PATCH] fix whitelist --- tests/clairscan.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/clairscan.sh b/tests/clairscan.sh index c80c285..8dbae4a 100755 --- a/tests/clairscan.sh +++ b/tests/clairscan.sh @@ -14,6 +14,14 @@ else echo 'using existing clair-scanner...' fi +#ensure whitelist file (temporary) +if [ ! -s ./centos7-clair-whitelist.yaml ]; then + echo 'downloading whitelist file...' + curl -s -L -o ./centos7-clair-whitelist.yaml https://github.internet2.edu/raw/docker/shib-idp/3.4.4_20190801/tests/centos7-clair-whitelist.yaml +else + echo 'using existing whitelist file...' +fi + #ensure DB container echo 'ensuring a fresh clair-db container...' docker ps | grep clair-db &>/dev/null