docker tool

This commit is contained in:
Joan Sanchez 2018-10-25 07:29:16 +02:00
parent f8d11c01b8
commit 8ebabfd0f8
1 changed files with 8 additions and 4 deletions

12
Jenkinsfile vendored
View File

@ -25,9 +25,10 @@ node {
}
stage ('Install Node dependencies') {
nodejs('node-8.12.0') {
sh "npm install gulp -g"
sh "npm install -g gulp"
sh "npm install -g docker-compose"
sh "npm install --only=prod"
sh "npm install --only=dev"
// sh "npm install --only=dev"
sh "gulp install"
}
}
@ -37,8 +38,11 @@ node {
}
}
stage ('Generating new dockers') {
sh "docker build -t vn-loopback:latest ./services/loopback/"
docker.build('vn-loopback:latest ./services/loopback/');
//sh "docker build -t vn-loopback:latest ./services/loopback/"
sh "docker-compose up -d --build"
sh "docker image prune -f"
//sh "docker image prune -f"
}
}