Last active
January 15, 2021 15:44
-
-
Save fedir/e671ce092155eb698aeb7933c5dfabf5 to your computer and use it in GitHub Desktop.
Jenkinsfile Clair Step
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage("docker_scan avec clair"){ | |
sh ''' | |
docker rm db | |
docker rm clair | |
docker run -p 5432:5432 -d --name db arminc/clair-db:2021-01-08 | |
docker run -p 6060:6060 -d --name clair arminc/clair-local-scan:arminc/clair-local-scan:v2.1.6_3bfb31ea61aa42eeb836354976065ccea308707e | |
clair-scanner --clair="http://clair:6060" vulnerables/web-dvwa | |
''' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment