Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hard coding image name temporarily
chubing committed Oct 4, 2018
1 parent 9445f31 commit 298594f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
@@ -49,18 +49,18 @@ pipeline {
steps {
script {
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def baseImg = docker.build("$maintainer/$imagename", "--no-cache .")
// def baseImg = docker.build("$maintainer/$imagename", "--no-cache .")
// scan the image with clair
sh 'docker run -p 5432:5432 -d --name db arminc/clair-db:2017-10-04'
sh 'docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.5'
sh 'curl -L -o clair-scanner https://github.com/arminc/clair-scanner/releases/download/v8/clair-scanner_linux_amd64'
sh 'chmod 755 clair-scanner'
sh './clair-scanner --ip 172.17.0.1 -r test.out $maintainer/$imagename'
sh './clair-scanner --ip 172.17.0.1 -r test.out tier/grouper'
// test the environment
sh 'cd test-compose && ./compose.sh'
// bring down after testing
sh 'cd test-compose && docker-compose down'
baseImg.push("$tag")
// baseImg.push("$tag")

}
}

0 comments on commit 298594f

Please sign in to comment.