From 8ebabfd0f87d20d2c12456a702bd3644b404dbef Mon Sep 17 00:00:00 2001 From: Joan Date: Thu, 25 Oct 2018 07:29:16 +0200 Subject: [PATCH] docker tool --- Jenkinsfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index be7c5c998..7ed804335 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" } }