docker tool
This commit is contained in:
parent
f8d11c01b8
commit
8ebabfd0f8
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue