Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
Carlos 2017-09-05 16:16:51 +02:00
commit e24a36aa08
2 changed files with 19 additions and 23 deletions

2
Jenkinsfile vendored
View File

@ -50,7 +50,7 @@ node {
echo "${returnDocker}";
returnDocker = sh (script: "docker rm ${prefixDocker}-${element}", returnStdout: false).trim();
//echo "${returnDocker}";
//returnDocker = sh (script: "docker rmi ${prefixDocker}-${element}:${buildNumber-3}", returnStdout: true).trim();
returnDocker = sh (script: "docker rmi ${prefixDocker}-${element}:${buildNumber-3}", returnStdout: true).trim();
echo "borran ${prefixDocker}-${element}:${buildNumber-3}";
//echo "${returnDocker}";
}catch(Exception _){

View File

@ -1,12 +1,8 @@
version: '2'
environment:
- branchName=${env.BRANCH_NAME}
- NODE_ENV=
- dockerHost=
version: '3'
services:
auth:
container_name: ${branchName}-auth
docker_host: ${dockerHost}
container_name: "${BRANCH_NAME}-auth"
image: "auth:${TAG}"
build:
context: ./services/auth
expose:
@ -15,8 +11,8 @@ services:
- "3000:3000"
salix:
container_name: ${branchName}-salix
docker_host: ${dockerHost}
container_name: "${BRANCH_NAME}-salix"
image: "salix:${TAG}"
build:
context: ./services/salix
expose:
@ -25,8 +21,8 @@ services:
- "3001:3001"
client:
container_name: ${branchName}-client
docker_host: ${dockerHost}
container_name: "${BRANCH_NAME}-client"
image: "client:${TAG}"
build:
context: ./services/client
expose:
@ -35,8 +31,8 @@ services:
- "3002:3002"
mailer:
container_name: ${branchName}-mailer
docker_host: ${dockerHost}
container_name: "${BRANCH_NAME}-mailer"
image: "mailer:${TAG}"
build:
context: ./services/mailer
expose:
@ -45,8 +41,8 @@ services:
- "3003:3003"
production:
container_name: ${branchName}-production
docker_host: ${dockerHost}
container_name: "${BRANCH_NAME}-production"
image: "production:${TAG}"
build:
context: ./services/production
expose:
@ -55,15 +51,15 @@ services:
- "3004:3004"
nginx:
container_name: ${branchName}-nginx
docker_host: ${dockerHost}
container_name: "${BRANCH_NAME}-nginx"
image: "nginx:${TAG}"
build:
context: ./services/nginx
ports:
- "80:8080"
links:
- "auth:${branchName}-auth"
- "salix:${branchName}-salix"
- "client:${branchName}-client"
- "mailer:${branchName}-mailer"
- "production:${branchName}-production"
- "auth:"${BRANCH_NAME}-auth"
- "salix:"${BRANCH_NAME}-salix"
- "client:"${BRANCH_NAME}-client"
- "mailer:"${BRANCH_NAME}-mailer"
- "production:"${BRANCH_NAME}-production"