#814 Docker deploy fixes

This commit is contained in:
Juan Ferrer 2019-01-02 00:52:15 +01:00
parent b2c510fcd9
commit a5897c7808
1 changed files with 4 additions and 4 deletions

6
Jenkinsfile vendored
View File

@ -29,13 +29,13 @@ node {
} }
} }
stage ('Docker deployment') { stage ('Docker deployment') {
sh "docker-compose build"
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
env.COMPOSE_HTTP_TIMEOUT = 300 env.COMPOSE_HTTP_TIMEOUT = 300
env.COMPOSE_PROJECT_NAME = 'salix' env.COMPOSE_PROJECT_NAME = 'salix'
env.DOCKER_TLS_VERIFY = 1 env.DOCKER_TLS_VERIFY = 1
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
sh "docker-compose build"
env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376'; env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376';
sh "docker-compose up -d" sh "docker-compose up -d"
} }