main
kossboii 2 years ago
parent f691278cc4
commit d3c9001945

@ -6,9 +6,7 @@ pipeline {
name: 'cves', name: 'cves',
defaultValue: '/home/ubuntu/tony/cves', defaultValue: '/home/ubuntu/tony/cves',
description: 'the location of the total cve folder' description: 'the location of the total cve folder'
), )
} }
stages { stages {

@ -3,11 +3,15 @@ pipeline {
stages { stages {
stage ('Create MongoDB Container') { stage ('Create MongoDB Container') {
mkdir -p /home/ubuntu/mongo steps {
mkdir -p /home/ubuntu/mongo
}
} }
stage ('Running MongoDB Container') { stage ('Running MongoDB Container') {
sudo docker run -d --name mongo-db -v /home/ubuntu/mongo:/data/db -p 27017:27017 mongo:latest steps {
sudo docker run -d --name mongo-db -v /home/ubuntu/mongo:/data/db -p 27017:27017 mongo:latest
}
} }
} }

Loading…
Cancel
Save